diff --git a/.vimrc b/.vimrc index 7da09bb..99d725e 100644 --- a/.vimrc +++ b/.vimrc @@ -377,6 +377,9 @@ iab timeh strftime("## %Y%m%d %a %H:%M:%S") " Fly through buffers instead of cycling nnoremap l :ls:b +" Close Location windows, if exist, switch to the previous view buffer, and then close the last switched buffer. +nnoremap q :lcloseb#bd # + " Git and Mercurial 'blame' command. First select lines in visual modes, then " hit the appropriate leader key sequence (e.g., \g for git blame) " Update: For Git blame, just do :Gblame from vim-fugitive