From 685aee7998b1e40b4a3d5011900059df674dc235 Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Sun, 7 May 2017 01:14:37 +0800 Subject: 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. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b18c165..427d7cd 100644 --- a/README.md +++ b/README.md @@ -90,9 +90,9 @@ nnoremap s :call FzyCommand("find -type f", ":sp") 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 e :call FzyCommand("ag . -l -g ''", ":e") -nnoremap v :call FzyCommand("ag . -l -g ''", ":vs") -nnoremap s :call FzyCommand("ag . -l -g ''", ":sp") +nnoremap e :call FzyCommand("ag . --silent -l -g ''", ":e") +nnoremap v :call FzyCommand("ag . --silent -l -g ''", ":vs") +nnoremap s :call FzyCommand("ag . --silent -l -g ''", ":sp") ``` ## Sorting -- cgit v1.2.3