From 3121231b3a3835618218fefe99e87470219bddc8 Mon Sep 17 00:00:00 2001 From: Robert Aschenbrenner Date: Fri, 13 Mar 2015 10:36:09 +0100 Subject: [PATCH] Update ack plugin --- .gitmodules | 3 +++ bundle/ack.vim | 1 + bundle/ack/doc/ack.txt | 38 ---------------------------- bundle/ack/doc/tags | 7 ------ bundle/ack/plugin/ack.vim | 51 -------------------------------------- bundle/ack/plugin/ack.vim~ | 50 ------------------------------------- 6 files changed, 4 insertions(+), 146 deletions(-) create mode 160000 bundle/ack.vim delete mode 100644 bundle/ack/doc/ack.txt delete mode 100644 bundle/ack/doc/tags delete mode 100644 bundle/ack/plugin/ack.vim delete mode 100644 bundle/ack/plugin/ack.vim~ diff --git a/.gitmodules b/.gitmodules index 8517b27..78e5988 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,3 +34,6 @@ [submodule "bundle/vim-coffee-script"] path = bundle/vim-coffee-script url = https://github.com/kchmck/vim-coffee-script.git +[submodule "bundle/ack.vim"] + path = bundle/ack.vim + url = https://github.com/mileszs/ack.vim.git diff --git a/bundle/ack.vim b/bundle/ack.vim new file mode 160000 index 0000000..6a57bc0 --- /dev/null +++ b/bundle/ack.vim @@ -0,0 +1 @@ +Subproject commit 6a57bc0a5877800b5621f6ade5006e58eb582845 diff --git a/bundle/ack/doc/ack.txt b/bundle/ack/doc/ack.txt deleted file mode 100644 index 4d57841..0000000 --- a/bundle/ack/doc/ack.txt +++ /dev/null @@ -1,38 +0,0 @@ -*ack.txt* Plugin that integrates ack with Vim - -============================================================================== -Author: Antoine Imbert *ack-author* -License: Same terms as Vim itself (see |license|) - -============================================================================== -INTRODUCTION *ack* - -This plugin is a front for the Perl module App::Ack. Ack can be used as a -replacement for grep. This plugin will allow you to run ack from vim, and -shows the results in a split window. - -:Ack [options] {pattern} [{directory}] *:Ack* - - Search recursively in {directory} (which defaults to the current - directory) for the {pattern}. Behaves just like the |:grep| command, but - will open the |Quickfix| window for you. - -:AckAdd [options] {pattern} [{directory}] *:AckAdd* - - Just like |:Ack| + |:grepadd|. Appends the |quickfix| with the results - -:LAck [options] {pattern} [{directory}] *:LAck* - - Just like |:Ack| + |:lgrep|. Searches, but opens in |location-list| - -:LAckAdd [options] {pattern} [{directory}] *:LAckAdd* - - Just like |:Ack| + |:lgrepadd|. Searches, but appends results to - |location-list| - -Files containing the search term will be listed in the split window, along -with the line number of the occurrence, once for each occurrence. on -a line in this window will open the file, and place the cursor on the matching -line. - -See http://search.cpan.org/~petdance/ack/ack for more information. diff --git a/bundle/ack/doc/tags b/bundle/ack/doc/tags deleted file mode 100644 index 9104223..0000000 --- a/bundle/ack/doc/tags +++ /dev/null @@ -1,7 +0,0 @@ -:Ack ack.txt /*:Ack* -:AckAdd ack.txt /*:AckAdd* -:LAck ack.txt /*:LAck* -:LAckAdd ack.txt /*:LAckAdd* -ack ack.txt /*ack* -ack-author ack.txt /*ack-author* -ack.txt ack.txt /*ack.txt* diff --git a/bundle/ack/plugin/ack.vim b/bundle/ack/plugin/ack.vim deleted file mode 100644 index 1cbb387..0000000 --- a/bundle/ack/plugin/ack.vim +++ /dev/null @@ -1,51 +0,0 @@ -" NOTE: You must, of course, install the ack script -" in your path. -" On Ubuntu: -" sudo apt-get install ack-grep -" ln -s /usr/bin/ack-grep /usr/bin/ack -" With MacPorts: -" sudo port install p5-app-ack - -" changed to ack-grep -let g:ackprg="ack-grep\\ -H\\ --nocolor\\ --nogroup" - -function! Ack(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! grep " . a:args - botright copen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -function! AckAdd(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! grepadd " . a:args - botright copen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -function! LAck(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! lgrep " . a:args - botright lopen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -function! LAckAdd(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! lgrepadd " . a:args - botright lopen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -command! -nargs=* -complete=file Ack call Ack() -command! -nargs=* -complete=file AckAdd call AckAdd() -command! -nargs=* -complete=file LAck call LAck() -command! -nargs=* -complete=file LAckAdd call LAckAdd() diff --git a/bundle/ack/plugin/ack.vim~ b/bundle/ack/plugin/ack.vim~ deleted file mode 100644 index 23f0fe3..0000000 --- a/bundle/ack/plugin/ack.vim~ +++ /dev/null @@ -1,50 +0,0 @@ -" NOTE: You must, of course, install the ack script -" in your path. -" On Ubuntu: -" sudo apt-get install ack-grep -" ln -s /usr/bin/ack-grep /usr/bin/ack -" With MacPorts: -" sudo port install p5-app-ack - -let g:ackprg="ack-grep\\ -H\\ --nocolor\\ --nogroup" - -function! Ack(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! grep " . a:args - botright copen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -function! AckAdd(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! grepadd " . a:args - botright copen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -function! LAck(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! lgrep " . a:args - botright lopen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -function! LAckAdd(args) - let grepprg_bak=&grepprg - exec "set grepprg=" . g:ackprg - execute "silent! lgrepadd " . a:args - botright lopen - let &grepprg=grepprg_bak - exec "redraw!" -endfunction - -command! -nargs=* -complete=file Ack call Ack() -command! -nargs=* -complete=file AckAdd call AckAdd() -command! -nargs=* -complete=file LAck call LAck() -command! -nargs=* -complete=file LAckAdd call LAckAdd()