summaryrefslogtreecommitdiff
path: root/README-VIM.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-02-03 13:51:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-02-03 13:51:56 +0900
commitfcd896508bb6c995f0f256fa98fec34c0a788a30 (patch)
tree42ed5b93fdfb64bca2d20f98c012fa2ce1a34b35 /README-VIM.md
parentf55c990e863e995809912bded64fde4431e1961a (diff)
downloadfzf-fcd896508bb6c995f0f256fa98fec34c0a788a30.tar.gz
[vim] fzf#run should ignore empty 'dir' argument
Fix #2343
Diffstat (limited to 'README-VIM.md')
-rw-r--r--README-VIM.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README-VIM.md b/README-VIM.md
index deb6b973..b934c232 100644
--- a/README-VIM.md
+++ b/README-VIM.md
@@ -362,7 +362,7 @@ Our `:LS` command will be much more useful if we can pass a directory argument
to it, so that something like `:LS /tmp` is possible.
```vim
-command! -bang -complete=dir -nargs=* LS
+command! -bang -complete=dir -nargs=? LS
\ call fzf#run(fzf#wrap({'source': 'ls', 'dir': <q-args>}, <bang>0))
```
@@ -372,7 +372,7 @@ a unique name to our command and pass it as the first argument to `fzf#wrap`.
```vim
" The query history for this command will be stored as 'ls' inside g:fzf_history_dir.
" The name is ignored if g:fzf_history_dir is not defined.
-command! -bang -complete=dir -nargs=* LS
+command! -bang -complete=dir -nargs=? LS
\ call fzf#run(fzf#wrap('ls', {'source': 'ls', 'dir': <q-args>}, <bang>0))
```