add fvim function to feed fzf input to vim

feature/symbol-search
bretello 2020-04-28 18:18:21 +02:00
parent 704b145bc4
commit 102d2477d5
1 changed files with 7 additions and 0 deletions

View File

@ -246,6 +246,13 @@ function git_prune_branches(){
git branch --merged master | grep -v '^[ * ]*master$' | xargs git branch -d
}
fvim() {
if [[ -n "$@" ]]; then
vim `fzf -q $@`
else
vim `fzf`
fi
}
# dotfiles user functions
if [[ -f $HOME/.dotfiles_functions ]]; then