Browse code

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.

Wenxuan authored on 06/05/2017 17:14:37 • GitHub committed on 06/05/2017 17:14:37
Showing 1 changed files

... ...
@@ -90,9 +90,9 @@ nnoremap <leader>s :call FzyCommand("find -type f", ":sp")<cr>
90 90
 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`.
91 91
 
92 92
 ``` vim
93
-nnoremap <leader>e :call FzyCommand("ag . -l -g ''", ":e")<cr>
94
-nnoremap <leader>v :call FzyCommand("ag . -l -g ''", ":vs")<cr>
95
-nnoremap <leader>s :call FzyCommand("ag . -l -g ''", ":sp")<cr>
93
+nnoremap <leader>e :call FzyCommand("ag . --silent -l -g ''", ":e")<cr>
94
+nnoremap <leader>v :call FzyCommand("ag . --silent -l -g ''", ":vs")<cr>
95
+nnoremap <leader>s :call FzyCommand("ag . --silent -l -g ''", ":sp")<cr>
96 96
 ```
97 97
 
98 98
 ## Sorting