✨ feat(fish): vim mode enabled
This commit is contained in:
parent
438af606a1
commit
122da8910d
3 changed files with 17 additions and 11 deletions
|
@ -1,5 +1,4 @@
|
||||||
source ~/.config/fish/variables.fish
|
source ~/.config/fish/variables.fish
|
||||||
source ~/.config/fish/keybinds.fish
|
|
||||||
source ~/.config/fish/abbreviations.fish
|
source ~/.config/fish/abbreviations.fish
|
||||||
|
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
|
@ -12,4 +11,3 @@ starship init fish | source
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
|
|
||||||
alias cd='z' # Couldn't create it as a function because of zoxide init
|
alias cd='z' # Couldn't create it as a function because of zoxide init
|
||||||
|
|
||||||
|
|
17
.config/fish/functions/fish_user_key_bindings.fish
Normal file
17
.config/fish/functions/fish_user_key_bindings.fish
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
function fish_user_key_bindings
|
||||||
|
set -xg fish_key_bindings fish_vi_key_bindings
|
||||||
|
fish_default_key_bindings -M insert
|
||||||
|
fish_vi_key_bindings --no-erase insert
|
||||||
|
bind -M visual -m default y 'fish_clipboard_copy; commandline -f end-selection repaint-mode'
|
||||||
|
bind yy fish_clipboard_copy
|
||||||
|
bind p fish_clipboard_paste
|
||||||
|
fzf_configure_bindings --directory=\e\cf
|
||||||
|
fzf_configure_bindings --history=\ch
|
||||||
|
|
||||||
|
bind \e\cg fgit
|
||||||
|
bind \e\cw rga-fzf
|
||||||
|
bind \e\z cdzi
|
||||||
|
bind \e\ci navi
|
||||||
|
bind \e\cr repos
|
||||||
|
bind \e\[Z switch_kitty_tab
|
||||||
|
end
|
|
@ -1,9 +0,0 @@
|
||||||
fzf_configure_bindings --directory=\e\cf
|
|
||||||
fzf_configure_bindings --history=\ch
|
|
||||||
|
|
||||||
bind \e\cg fgit
|
|
||||||
bind \e\cw rga-fzf
|
|
||||||
bind \e\z cdzi
|
|
||||||
bind \e\ci navi
|
|
||||||
bind \e\cr repos
|
|
||||||
bind \e\[Z switch_kitty_tab
|
|
Loading…
Add table
Reference in a new issue