1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 04:45:09 +01:00

Close buffer with leader-q, but leave split alone

This commit is contained in:
2018-01-05 13:07:16 +01:00
parent 46220b2c81
commit b1fd3466a7

3
.vimrc
View File

@@ -377,6 +377,9 @@ iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
" Fly through buffers instead of cycling
nnoremap <leader>l :ls<cr>:b<space>
" Close Location windows, if exist, switch to the previous view buffer, and then close the last switched buffer.
nnoremap <silent> <leader>q :lclose<bar>b#<bar>bd #<CR>
" 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