forked from exvim/main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.viemurc
42 lines (42 loc) · 1.04 KB
/
.viemurc
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
" Add blank space above/below with <CR>, <S-CR>
nnoremap <CR> o<Esc>
nnoremap <S-CR> O<Esc>
" use tab to indent
nnoremap <Tab> >>
nnoremap <S-Tab> <<
vnoremap <Tab> >
vnoremap <S-Tab> <
nnoremap <space> <C-f>
nnoremap <S-space> <C-b>
" have Y behave analogously to D and C rather than to dd and cc (which is
" already done by yy):
noremap Y y$
" Function-key remappings
nnoremap <F4> :bd<CR>
"clear highlighted search terms with <esc> in normal mode
nnoremap <esc> :nohlsearch<return><esc>
" Make marks easier to navigate
noremap ' `
noremap ` '
noremap H ^
noremap L $
nnoremap <F8> :cp<CR>
inoremap <F8> <esc>:cp<CR>
nnoremap <F9> :cn<CR>
inoremap <F9> <esc>:cn<CR>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Colemak Bindings
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" j - left
" l - right
" h - up
" k - down
"
"noremap h k
"noremap j h
"noremap k j
" Colemak ':' is slightly harder to hit than qwerty ':'. Make it easier by
" swapping ':' and ';'
"noremap : ;
noremap ; :
set notimeout