vimrc: add mappings

This commit is contained in:
Rob Watson 2021-04-28 10:48:34 +02:00
parent a5e752f342
commit 13eae31075
1 changed files with 2 additions and 0 deletions

2
vimrc
View File

@ -125,6 +125,7 @@ imap <right> <nop>
nmap ]q :cn<cr> nmap ]q :cn<cr>
nmap [q :cp<cr> nmap [q :cp<cr>
nnoremap <silent> <leader>w :w<cr>
nnoremap <silent> <leader>/ :nohlsearch<cr> nnoremap <silent> <leader>/ :nohlsearch<cr>
nnoremap <silent> <leader><space> :nohlsearch<cr> nnoremap <silent> <leader><space> :nohlsearch<cr>
" Select just-pasted text: " Select just-pasted text:
@ -132,6 +133,7 @@ nnoremap <silent> <leader>0 `[v`]
" Select just-pasted text and re-indent: " Select just-pasted text and re-indent:
nnoremap <silent> <leader>) `[v`]= nnoremap <silent> <leader>) `[v`]=
nnoremap <silent> <leader>1 :set relativenumber!<cr> nnoremap <silent> <leader>1 :set relativenumber!<cr>
nnoremap <silent> <leader>! :windo set norelativenumber<cr>
nnoremap <leader>m :marks<cr> nnoremap <leader>m :marks<cr>
nnoremap <leader>v :vsplit<cr> nnoremap <leader>v :vsplit<cr>
nnoremap <leader>s :split<cr> nnoremap <leader>s :split<cr>