mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 05:45:11 +01:00
Close buffer with leader-q, but leave split alone
This commit is contained in:
3
.vimrc
3
.vimrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user