From: Silvio Rhatto Date: Wed, 21 Mar 2018 21:57:28 +0000 (-0300) Subject: Avoid slowness due to too many opened buffers X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f5eb6aeba4e3c2d21fe81b87bcb3bbe19eeb575d;p=rhatto%2Fdotfiles%2Fvim.git Avoid slowness due to too many opened buffers --- diff --git a/vimrc.dot.link b/vimrc.dot.link index 38df4a4..b8abd15 100644 --- a/vimrc.dot.link +++ b/vimrc.dot.link @@ -167,7 +167,9 @@ nmap c :tabclose nmap b :NERDTreeFromBookmark nmap B :B nmap s :OpenSession -nmap m :q! +"nmap m :q! +" We're closing the buffer instead of just the window to avoid slowness due to too many opened buffers +nmap m :bd nmap w :w imap n :tabnew imap t :NERDTree @@ -177,7 +179,9 @@ imap t :T imap f :wq imap c :tabclose "map e :tabclose -imap m :q! +"imap m :q! +" We're closing the buffer instead of just the window to avoid slowness due to too many opened buffers +imap m :bd imap w :w " Write, quit and close shortcuts using Alt-key combo notation