my_chezmoi/dot_config/private_fish/functions/vim.fish
2023-12-24 11:43:10 -05:00

9 lines
243 B
Fish

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