Add fuzzy open a file
This commit is contained in:
parent
7be77a0235
commit
a1eaa4c28f
1 changed files with 9 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue