1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-05-06 21:34:09 +02: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
View File
@@ -377,6 +377,9 @@ iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
" Fly through buffers instead of cycling " Fly through buffers instead of cycling
nnoremap <leader>l :ls<cr>:b<space> 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 " Git and Mercurial 'blame' command. First select lines in visual modes, then
" hit the appropriate leader key sequence (e.g., \g for git blame) " hit the appropriate leader key sequence (e.g., \g for git blame)
" Update: For Git blame, just do :Gblame from vim-fugitive " Update: For Git blame, just do :Gblame from vim-fugitive