elvish_config/aliases/vi.elv

26 lines
781 B
Plaintext
Raw Normal View History

# ÉDITEURS DISPOS
2022-09-02 13:53:03 +00:00
#fn ce {|@argv| e:emacs $@argv }
#fn ce {|@argv| e:helix $@argv }
fn ce {|@argv| e:kak $@argv }
#fn ce {|@argv| e:nvim $@argv }
#fn ce {|@argv| e:vim $@argv }
# LECTURE SEULE
## emacs
#fn cv {|@argv| ce $@argv --eval '(setq buffer-read-only)' }
## helix (pas le lecture seule pour le moment)
#fn cv {|@argv| ce $@argv }
# kak
fn cv {|@argv| ce -ro $@argv }
## nvim/vim
#fn cv {|@argv| ce -R $@argv }
edit:add-var vi~ $ce~
edit:add-var vb~ {|@argv| ce $@argv ~/.bashrc }
edit:add-var vc~ {|@argv| ce $@argv ~/.vimrc }
edit:add-var ve~ {|@argv| ce $@argv ~/.config/elvish/rc.elv }
edit:add-var vf~ {|@argv| ce $@argv ~/.config/fish/config.fish }
edit:add-var vp~ {|@argv| ce $@argv PKGBUILD }
edit:add-var vv~ $cv~
edit:add-var vz~ {|@argv| ce $@argv ~/.zshrc }