From b1fd3466a7d8f24803302ccd62326584c2c0dab9 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 5 Jan 2018 13:07:16 +0100 Subject: [PATCH] Close buffer with leader-q, but leave split alone --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) 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