aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init/keymaps.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/init/keymaps.vim')
-rw-r--r--vim/init/keymaps.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim
index 2d58fe9..07be9b3 100644
--- a/vim/init/keymaps.vim
+++ b/vim/init/keymaps.vim
@@ -476,6 +476,7 @@ let g:quitVimWhenPressingCtrlC = 1
476function! ToggleQuit() 476function! ToggleQuit()
477 let g:quitVimWhenPressingCtrlC = !g:quitVimWhenPressingCtrlC 477 let g:quitVimWhenPressingCtrlC = !g:quitVimWhenPressingCtrlC
478 let message = g:quitVimWhenPressingCtrlC ? "Unlock" : "Lock" 478 let message = g:quitVimWhenPressingCtrlC ? "Unlock" : "Lock"
479 nnoremap ZZ <C-c>
479 echo message 480 echo message
480endfunction 481endfunction
481nnoremap \q :call ToggleQuit()<CR> 482nnoremap \q :call ToggleQuit()<CR>
@@ -502,7 +503,7 @@ function! CloseBufferSafely()
502 tabclose 503 tabclose
503 else 504 else
504 " Switch to proper buffer 505 " Switch to proper buffer
505 let next_buf = get(t:bufs, bufnr('#')) ? bufnr('#') : filter(t:bufs, 'v:val != '..bufnr)[-1] 506 let next_buf = filter(t:bufs, 'v:val != '..bufnr)[-1]
506 exe "b "..next_buf 507 exe "b "..next_buf
507 " exe "buffer ".g:lastbuffer 508 " exe "buffer ".g:lastbuffer
508 call filter(t:bufs, 'v:val != '..bufnr) 509 call filter(t:bufs, 'v:val != '..bufnr)