diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-27 14:22:26 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-27 14:22:26 +0800 |
commit | 91f3e8c038e289009554e69f05abc75bccee8368 (patch) | |
tree | 5f19a82a241bac1587d908305c7d1a3833f1226a | |
parent | c4d87fd742c39f0729e7bef61a276769de8142bb (diff) |
Update
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | vim/init/keymaps.vim | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -132,6 +132,7 @@ file.size() { | |||
132 | # Systemctl {{{ | 132 | # Systemctl {{{ |
133 | alias s='sudo systemctl' | 133 | alias s='sudo systemctl' |
134 | alias j='sudo journalctl -xeu' | 134 | alias j='sudo journalctl -xeu' |
135 | alias jf='sudo journalctl -xfeu' | ||
135 | # }}} | 136 | # }}} |
136 | # TTY {{{ | 137 | # TTY {{{ |
137 | alias tma='tmux a' | 138 | alias tma='tmux a' |
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 | |||
478 | function! ToggleQuit() | 478 | function! 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 |
483 | endfunction | 483 | endfunction |
484 | nnoremap \q :call ToggleQuit()<CR> | 484 | nnoremap \q :call ToggleQuit()<CR> |