my_chezmoi/dot_config/private_fish/functions/vim.fish.tmpl

9 lines
243 B
Cheetah

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