elvish_config/aliases/vi.elv

15 lines
616 B
Plaintext
Raw Normal View History

2022-04-15 12:04:04 +00:00
var cmd = $e:vim~
#var cmd = $e:kak~
2022-04-15 12:04:04 +00:00
#var cmd = $e:emacs~
2021-12-11 21:09:02 +00:00
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 }
2022-04-15 12:04:04 +00:00
edit:add-var vv~ {|@argv| $cmd -R $@argv } # vim/nvim
#edit:add-var vv~ {|@argv| $cmd -ro $@argv } # kak
2022-04-15 12:04:04 +00:00
#edit:add-var vv~ {|@argv| $cmd $@argv --eval '(setq buffer-read-only t)' } # emacs
2021-12-11 21:09:02 +00:00
edit:add-var vz~ {|@argv| $cmd $@argv ~/.zshrc }