vimrc: add mappings
This commit is contained in:
parent
a5e752f342
commit
13eae31075
2
vimrc
2
vimrc
|
@ -125,6 +125,7 @@ imap <right> <nop>
|
|||
nmap ]q :cn<cr>
|
||||
nmap [q :cp<cr>
|
||||
|
||||
nnoremap <silent> <leader>w :w<cr>
|
||||
nnoremap <silent> <leader>/ :nohlsearch<cr>
|
||||
nnoremap <silent> <leader><space> :nohlsearch<cr>
|
||||
" Select just-pasted text:
|
||||
|
@ -132,6 +133,7 @@ nnoremap <silent> <leader>0 `[v`]
|
|||
" Select just-pasted text and re-indent:
|
||||
nnoremap <silent> <leader>) `[v`]=
|
||||
nnoremap <silent> <leader>1 :set relativenumber!<cr>
|
||||
nnoremap <silent> <leader>! :windo set norelativenumber<cr>
|
||||
nnoremap <leader>m :marks<cr>
|
||||
nnoremap <leader>v :vsplit<cr>
|
||||
nnoremap <leader>s :split<cr>
|
||||
|
|
Loading…
Reference in New Issue