Change vim key mappings a bit

This commit is contained in:
Théophile Bastian 2017-03-07 01:52:21 +01:00
parent e8e4216a3b
commit 881d274080

View file

@ -105,12 +105,12 @@ match ExtraWhitespace /\s\+$\| \+\ze\t/
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
""""""""""""""""" Key bindings """"""""""""""""" Key bindings
map <F1> :w<CR>:!make<CR> nnoremap <F1> :w<CR>:!make<CR>
imap <F1> <esc>:echo 'F1 help disabled'<CR> inoremap <F1> <esc>:echo 'F1 help disabled'<CR>
map <F2> :!git status<CR> nnoremap <F2> :!git status<CR>
map [[ :lprev<CR> nnoremap __ :lprev<CR>
map ]] :lnext<CR> nnoremap ++ :lnext<CR>
map [] :ll<CR> nnoremap _+ :ll<CR>
nnoremap <Leader>w :call TrimWhitespace()<CR> nnoremap <Leader>w :call TrimWhitespace()<CR>
nnoremap K <Esc>i<CR><Esc> nnoremap K <Esc>i<CR><Esc>