From f5eb6aeba4e3c2d21fe81b87bcb3bbe19eeb575d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 21 Mar 2018 18:57:28 -0300 Subject: Avoid slowness due to too many opened buffers --- vimrc.dot.link | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vimrc.dot.link') 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 -- cgit v1.2.3