tweaked mappings

This commit is contained in:
Claudio Maggioni 2019-01-03 22:58:42 +01:00
parent 799a4fd415
commit 45ee08debe

View file

@ -73,14 +73,21 @@ nnoremap <Leader>g :Grepper -tool git<CR>
" Switch between Windows with: Leader w
nnoremap <Leader>w <C-w><C-w>
" Show next buffer with: Leader n
nnoremap <Leader>n :bn<CR>
" show next buffer with: leader n
nnoremap <leader>n :bn<cr>
" show previous buffer with: leader n
nnoremap <leader>p :bp<cr>
" Fix indentation with: Leader i
nnoremap <Leader>i mzgg=G`z
" Delete buffer with: Leader d
nnoremap <Leader>d :bd<CR>
nnoremap <Leader>d :bp\|bd #<CR>
" move to next tab with: Leader t
nnoremap <Leader>t :tabnext<CR>
tnoremap <C-e> <C-\><C-n>:tabnext<CR>
" clear trailing spaces in file
function! g:ClearTrailingSpaces()