Add a vim option select

This commit is contained in:
2025-04-04 17:42:35 +00:00
parent 8e1877f9e8
commit e68ccd8bc7
3 changed files with 13 additions and 4 deletions

View File

@@ -21,3 +21,13 @@ cat_with_newline()
cat "$@" && echo
}
alias cat="cat_with_newline"
vim_option_select()
{
if which nvim &> /dev/null; then
nvim "$@"
else
vim "$@"
fi
}
alias vim="vim_option_select "