diff options
author | Wenxuan <wenxuangm@gmail.com> | 2017-05-07 01:14:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-07 01:14:37 +0800 |
commit | 685aee7998b1e40b4a3d5011900059df674dc235 (patch) | |
tree | 04a49d50b12ad2e910c046ffa038293e5e5994bb /README.md | |
parent | eda33dae3cfd1b0ae3e171582140fbed4f491cca (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.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |