From d5efba2db5d1856f0116daea0d5cfdf8027a6e5d Mon Sep 17 00:00:00 2001 From: Sebastian Burschel Date: Mon, 12 Apr 2021 09:08:55 +0200 Subject: [PATCH] Added ctrl-s quicksave bind and necessary zsh settings. --- dotfiles/.vimrc | 5 +++++ dotfiles/.zshrc | 1 + 2 files changed, 6 insertions(+) diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index 52203b5..7111f22 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -320,6 +320,11 @@ highlight link myTodo Todo " Bind ctrl+u to jump list jump (opposite of ctrl+o) nnoremap +" Bind ctrl-s to quicksave! +noremap :update +vnoremap :update +inoremap :update + " Load changes to a file automatically from drive if the file has not been " changed yet set autoread diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index ae87afa..c20c00c 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -70,4 +70,5 @@ alias scp='noglob \scp' # Allows wildcards in scp commands alias rsync='noglob \rsync' # Allows wildcards in rsync commands setxkbmap -option caps:escape # Change capslock key to escape zstyle ':completion:*' rehash true # Find new executables for autcompletion +stty -ixon # Ignore and pass through ctrl-s and ctrl-q as normal input (quicksave bin for vim)