From 45ee08debec016f2d115aacdcade6d7dbb87ca2a Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Thu, 3 Jan 2019 22:58:42 +0100 Subject: [PATCH] tweaked mappings --- init.vim | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 7ec8c70..6cfc715 100644 --- a/init.vim +++ b/init.vim @@ -73,14 +73,21 @@ nnoremap g :Grepper -tool git " Switch between Windows with: Leader w nnoremap w -" Show next buffer with: Leader n -nnoremap n :bn +" show next buffer with: leader n +nnoremap n :bn + +" show previous buffer with: leader n +nnoremap p :bp " Fix indentation with: Leader i nnoremap i mzgg=G`z " Delete buffer with: Leader d -nnoremap d :bd +nnoremap d :bp\|bd # + +" move to next tab with: Leader t +nnoremap t :tabnext +tnoremap :tabnext " clear trailing spaces in file function! g:ClearTrailingSpaces()