summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWenxuan <wenxuangm@gmail.com>2017-05-07 01:14:37 +0800
committerGitHub <noreply@github.com>2017-05-07 01:14:37 +0800
commit685aee7998b1e40b4a3d5011900059df674dc235 (patch)
tree04a49d50b12ad2e910c046ffa038293e5e5994bb /README.md
parenteda33dae3cfd1b0ae3e171582140fbed4f491cca (diff)
Update README.md
Add --silent option to ag command preventing error message (eg: permission denied error on some directories) flow to 'output' which should only be the file name selected.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index b18c165..427d7cd 100644
--- a/README.md
+++ b/README.md
@@ -90,9 +90,9 @@ nnoremap <leader>s :call FzyCommand("find -type f", ":sp")<cr>
Any program can be used to filter files presented through fzy. [ag (the silver searcher)](https://github.com/ggreer/the_silver_searcher) can be used to ignore files specified by `.gitignore`.
``` vim
-nnoremap <leader>e :call FzyCommand("ag . -l -g ''", ":e")<cr>
-nnoremap <leader>v :call FzyCommand("ag . -l -g ''", ":vs")<cr>
-nnoremap <leader>s :call FzyCommand("ag . -l -g ''", ":sp")<cr>
+nnoremap <leader>e :call FzyCommand("ag . --silent -l -g ''", ":e")<cr>
+nnoremap <leader>v :call FzyCommand("ag . --silent -l -g ''", ":vs")<cr>
+nnoremap <leader>s :call FzyCommand("ag . --silent -l -g ''", ":sp")<cr>
```
## Sorting