mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-22 15:33:09 +01:00
# Adds Vim-style text surround bindings
This commit is contained in:
parent
ae2d451a37
commit
3e5bf34d6d
14
zsh/lib/surround.zsh
Normal file
14
zsh/lib/surround.zsh
Normal file
@ -0,0 +1,14 @@
|
||||
# Mimic Tim Pope’s Vim surround plugin
|
||||
# When in normal mode, use:
|
||||
# - cs (change surrounding)
|
||||
# - ds (delete surrounding)
|
||||
# - ys (add surrounding)
|
||||
|
||||
autoload -Uz surround
|
||||
zle -N delete-surround surround
|
||||
zle -N add-surround surround
|
||||
zle -N change-surround surround
|
||||
bindkey -M vicmd cs change-surround
|
||||
bindkey -M vicmd ds delete-surround
|
||||
bindkey -M vicmd ys add-surround
|
||||
bindkey -M visual S add-surround
|
Loading…
Reference in New Issue
Block a user