Add fuzzy open a file

This commit is contained in:
flyingscorpio@pinebookpro 2021-10-25 15:22:29 +02:00
parent 7be77a0235
commit a1eaa4c28f

View file

@ -46,6 +46,15 @@ if [ -x /usr/bin/nvim ]; then
alias vim='nvim'
fi
# "fuzzy" open a file
fvim() {
if [ -x /usr/bin/nvim ]; then
find . -name "$1" -exec /usr/bin/nvim {} \;
else
find . -name "$1" -exec /usr/bin/vim {} \;
fi
}
# For common errors
alias :q=' exit'
alias :x=' exit'