Skip to content

Instantly share code, notes, and snippets.

@degzcs
Last active September 21, 2021 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save degzcs/b5c1d4ef9fb7d3196cdeb2e2785a6124 to your computer and use it in GitHub Desktop.
Save degzcs/b5c1d4ef9fb7d3196cdeb2e2785a6124 to your computer and use it in GitHub Desktop.
VIM terminal config
#
# Vim
#
bindkey -v # User vim commands on the terminal
# Better searching in command mode
bindkey -M vicmd '?' history-incremental-search-backward
bindkey -M vicmd '/' history-incremental-search-forward
# Beginning search with arrow keys
bindkey "^[OA" up-line-or-beginning-search
bindkey "^[OB" down-line-or-beginning-search
bindkey -M vicmd "k" up-line-or-beginning-search
bindkey -M vicmd "j" down-line-or-beginning-search
#
# Vim
#
stty -ixon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment