diff options
-rw-r--r-- | vimrc.dot.link | 8 |
1 files changed, 6 insertions, 2 deletions
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 <ESC>c :tabclose<CR> nmap <ESC>b :NERDTreeFromBookmark nmap <ESC>B :B nmap <ESC>s :OpenSession -nmap <ESC>m :q!<CR> +"nmap <ESC>m :q!<CR> +" We're closing the buffer instead of just the window to avoid slowness due to too many opened buffers +nmap <ESC>m :bd<CR> nmap <ESC>w :w<CR> imap <ESC>n <ESC>:tabnew<CR> imap <ESC>t <ESC>:NERDTree @@ -177,7 +179,9 @@ imap <ESC>t <ESC>:T imap <ESC>f <ESC>:wq<CR> imap <ESC>c <ESC>:tabclose<CR> "map <ESC>e <ESC>:tabclose<CR> -imap <ESC>m <ESC>:q!<CR> +"imap <ESC>m <ESC>:q!<CR> +" We're closing the buffer instead of just the window to avoid slowness due to too many opened buffers +imap <ESC>m <ESC>:bd<CR> imap <ESC>w <ESC>:w<CR> " Write, quit and close shortcuts using Alt-key combo notation |