summary refs log tree commit diff
path: root/vim/plugin/ag.vim
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2015-07-28 13:43:56 -0700
committerFranck Cuny <franckcuny@gmail.com>2015-07-28 13:43:56 -0700
commit2b985e70f178e4e7b9bb4a16748f6d346d382dbb (patch)
tree7daabe2eac64f4a5e708ed579a09ef4c1b849c18 /vim/plugin/ag.vim
parent[bash] update PS1. (diff)
downloademacs.d-2b985e70f178e4e7b9bb4a16748f6d346d382dbb.tar.gz
[vim] add a couple of plugins.
Add plugins for ag and surround.
Diffstat (limited to 'vim/plugin/ag.vim')
-rw-r--r--vim/plugin/ag.vim11
1 files changed, 11 insertions, 0 deletions
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<bang>',<q-args>)
+command! -bang -nargs=* -complete=file AgBuffer call ag#AgBuffer('grep<bang>',<q-args>)
+command! -bang -nargs=* -complete=file AgAdd call ag#Ag('grepadd<bang>', <q-args>)
+command! -bang -nargs=* -complete=file AgFromSearch call ag#AgFromSearch('grep<bang>', <q-args>)
+command! -bang -nargs=* -complete=file LAg call ag#Ag('lgrep<bang>', <q-args>)
+command! -bang -nargs=* -complete=file LAgBuffer call ag#AgBuffer('lgrep<bang>',<q-args>)
+command! -bang -nargs=* -complete=file LAgAdd call ag#Ag('lgrepadd<bang>', <q-args>)
+command! -bang -nargs=* -complete=file AgFile call ag#Ag('grep<bang> -g', <q-args>)
+command! -bang -nargs=* -complete=help AgHelp call ag#AgHelp('grep<bang>',<q-args>)
+command! -bang -nargs=* -complete=help LAgHelp call ag#AgHelp('lgrep<bang>',<q-args>)