my_chezmoi/dot_config/private_fish/functions/vim.fish

10 lines
243 B
Fish
Raw Normal View History

2023-12-24 11:43:10 -05:00
function vim --wraps=micro --description 'run micro instead of vim'
if type -q micro
{{ lookPath "micro" }} $argv
else if type -q nvim
{{ lookPath "nvim" }} $argv
else
{{ lookPath "vim" }} $argv
end
end