aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2023-05-15 13:11:23 +0200
committerThomas Schneider <qsx@chaotikum.eu>2023-05-15 13:11:23 +0200
commitb5c0620a9279bdf3fb70115c5d9a53653a58651d (patch)
treef4996f6089fee690aeef5f0b67b0dabd18b8b37b
parent6c09ba517d4b34c3fe0f4cd276fc2f9c31ae5bbc (diff)
zsh: Function for vim that resets the terminal cursor afterwards
-rw-r--r--dot.zshrc.local6
1 files changed, 5 insertions, 1 deletions
diff --git a/dot.zshrc.local b/dot.zshrc.local
index 3fc2a29..19fb1f6 100644
--- a/dot.zshrc.local
+++ b/dot.zshrc.local
@@ -58,7 +58,11 @@ function qsx_fix_vcs_info() {
qsx_fix_vcs_info
(( $+commands[bsdtar] )) && alias tar=bsdtar
-(( $+commands[nvim] )) && alias vim=nvim
+(( $+commands[nvim] )) && function vim {
+ command nvim "$@"
+ # Reset terminal cursor
+ printf "\033[0 q"
+}
alias g=git
alias ec="emacsclient -n"
alias et="emacsclient -t"