aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-27 14:22:26 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-27 14:22:26 +0800
commit91f3e8c038e289009554e69f05abc75bccee8368 (patch)
tree5f19a82a241bac1587d908305c7d1a3833f1226a /vim
parentc4d87fd742c39f0729e7bef61a276769de8142bb (diff)
Update
Diffstat (limited to 'vim')
-rw-r--r--vim/init/keymaps.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim
index 264710e..73f931e 100644
--- a/vim/init/keymaps.vim
+++ b/vim/init/keymaps.vim
@@ -478,7 +478,7 @@ let g:quitVimWhenPressingCtrlC = 1
478function! ToggleQuit() 478function! ToggleQuit()
479 let g:quitVimWhenPressingCtrlC = !g:quitVimWhenPressingCtrlC 479 let g:quitVimWhenPressingCtrlC = !g:quitVimWhenPressingCtrlC
480 let message = g:quitVimWhenPressingCtrlC ? "Unlock" : "Lock" 480 let message = g:quitVimWhenPressingCtrlC ? "Unlock" : "Lock"
481 nnoremap ZZ <C-c> 481 nnoremap ZZ :w<CR><C-c>
482 echo message 482 echo message
483endfunction 483endfunction
484nnoremap \q :call ToggleQuit()<CR> 484nnoremap \q :call ToggleQuit()<CR>