From 2b985e70f178e4e7b9bb4a16748f6d346d382dbb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 28 Jul 2015 13:43:56 -0700 Subject: [vim] add a couple of plugins. Add plugins for ag and surround. --- vim/plugin/ag.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vim/plugin/ag.vim (limited to 'vim/plugin/ag.vim') diff --git a/vim/plugin/ag.vim b/vim/plugin/ag.vim new file mode 100644 index 0000000..053f213 --- /dev/null +++ b/vim/plugin/ag.vim @@ -0,0 +1,11 @@ +" NOTE: You must, of course, install ag / the_silver_searcher +command! -bang -nargs=* -complete=file Ag call ag#Ag('grep',) +command! -bang -nargs=* -complete=file AgBuffer call ag#AgBuffer('grep',) +command! -bang -nargs=* -complete=file AgAdd call ag#Ag('grepadd', ) +command! -bang -nargs=* -complete=file AgFromSearch call ag#AgFromSearch('grep', ) +command! -bang -nargs=* -complete=file LAg call ag#Ag('lgrep', ) +command! -bang -nargs=* -complete=file LAgBuffer call ag#AgBuffer('lgrep',) +command! -bang -nargs=* -complete=file LAgAdd call ag#Ag('lgrepadd', ) +command! -bang -nargs=* -complete=file AgFile call ag#Ag('grep -g', ) +command! -bang -nargs=* -complete=help AgHelp call ag#AgHelp('grep',) +command! -bang -nargs=* -complete=help LAgHelp call ag#AgHelp('lgrep',) -- cgit 1.4.1