-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
74 lines (65 loc) · 1.04 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
" Map Colemak keys in alphabetical order.
noremap d g
noremap e k
noremap f e
noremap g t
noremap i l
noremap j y
noremap k n
noremap l u
noremap n j
noremap o p
noremap p r
noremap r s
noremap s d
noremap t f
noremap u i
noremap y o
noremap D G
noremap E K
noremap F E
noremap G T
noremap I L
noremap J Y
noremap K N
noremap L U
noremap N J
noremap O P
noremap P R
noremap R S
noremap S D
noremap T F
noremap U I
noremap Y O
noremap dd gg
noremap df ge
noremap dF gE
noremap jj yy
noremap jf yf
noremap jF yF
noremap gg tt
noremap gG tT
" Essentials
set number
set title
set autoindent
set showcmd
set cmdheight=1
set shiftwidth=2
set mouse=a
set undofile
set backspace=indent,eol,start
" Store temporary files in .vim to keep the working directories clean.
set directory=~/.vim/swap
set undodir=~/.vim/undo
set history=10000
" Use Windows clipboard to copy and to paste
set clipboard=unnamed
" Use Y to copy into clipboard
nnoremap Y "+y
vnoremap Y "+y
nnoremap yY ^"+y$
" Use D to cut into clipboard
nnoremap D "+d
vnoremap D "+d
nnoremap dD ^"+d$