elvish_config/aliases/vi.elv

17 lines
730 B
Plaintext

#var cmd = $e:nvim~
#var cmd = $e:helix~
var cmd = $e:kak~
#var cmd = $e:emacs~
edit:add-var vi~ {|@argv| $cmd $@argv }
edit:add-var vb~ {|@argv| $cmd $@argv ~/.bashrc }
edit:add-var vc~ {|@argv| $cmd $@argv ~/.vimrc }
edit:add-var ve~ {|@argv| $cmd $@argv ~/.config/elvish/rc.elv }
edit:add-var vf~ {|@argv| $cmd $@argv ~/.config/fish/config.fish }
edit:add-var vp~ {|@argv| $cmd $@argv PKGBUILD }
#edit:add-var vv~ {|@argv| $cmd -R $@argv } # vim/nvim
edit:add-var vv~ {|@argv| $cmd -ro $@argv } # kak
#edit:add-var vv~ {|@argv| $cmd $@argv } # helix - pas de mode lecture seule pour le moment
#edit:add-var vv~ {|@argv| $cmd $@argv --eval '(setq buffer-read-only t)' } # emacs
edit:add-var vz~ {|@argv| $cmd $@argv ~/.zshrc }