m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Add --query parameter to fzf invocation in vimf function

This commit is contained in:
Christian Wellenbrock
2014-03-19 12:30:42 +01:00
parent 5c71ecb267
commit 693b6651b4
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -134,7 +134,7 @@ Useful examples
# vimf - Open selected file in Vim # vimf - Open selected file in Vim
vimf() { vimf() {
local file local file
file=$(fzf) && vim "$file" file=$(fzf --query=$1) && vim "$file"
} }
# fd - cd to selected directory # fd - cd to selected directory