From 79f645aa6c5cfd46028ccf8d553191beb43ad933 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 7 Jan 2014 17:07:02 +0900 Subject: [PATCH] Update README --- README.md | 76 +++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 6090c253..8df3e2b4 100644 --- a/README.md +++ b/README.md @@ -117,44 +117,6 @@ such as: `^music .mp3$ sbtrkt !rmx` | `'wild` | Items that include `wild` | exact-match (quoted) | | `!'fire` | Items that do not include `fire` | inverse-exact-match | -Usage as Vim plugin -------------------- - -If you install fzf as a Vim plugin, `:FZF` command will be added. - -```vim -" Look for files under current directory -:FZF - -" Look for files under your home directory -:FZF ~ - -" With options -:FZF --no-sort -m /tmp -``` - -You can override the source command which produces input to fzf. - -```vim -let g:fzf_source = 'find . -type f' -``` - -And you can predefine default options to fzf command. - -```vim -let g:fzf_options = '--no-color --extended' -``` - -For more advanced uses, you can call `fzf#run` function as follows. - -```vim -:call fzf#run('tabedit', '-m +c') -``` - -Most of the time, you will prefer native Vim plugins with better integration -with Vim. The only reason one might consider using fzf in Vim is its speed. For -a very large list of files, fzf is significantly faster and it does not block. - Useful examples --------------- @@ -330,6 +292,44 @@ TODO :smiley: (Pull requests are appreciated.) +Usage as Vim plugin +------------------- + +If you install fzf as a Vim plugin, `:FZF` command will be added. + +```vim +" Look for files under current directory +:FZF + +" Look for files under your home directory +:FZF ~ + +" With options +:FZF --no-sort -m /tmp +``` + +You can override the source command which produces input to fzf. + +```vim +let g:fzf_source = 'find . -type f' +``` + +And you can predefine default options to fzf command. + +```vim +let g:fzf_options = '--no-color --extended' +``` + +For more advanced uses, you can call `fzf#run` function as follows. + +```vim +:call fzf#run('tabedit', '-m +c') +``` + +Most of the time, you will prefer native Vim plugins with better integration +with Vim. The only reason one might consider using fzf in Vim is its speed. For +a very large list of files, fzf is significantly faster and it does not block. + Tips ----