Permalink
Browse files

Remove ack.vim

  • Loading branch information...
1 parent 515f53d commit 395f12c6d001b11f60627e51651bad4d57e66ed4 @gabebw committed Feb 26, 2013
Showing with 0 additions and 63 deletions.
  1. +0 −13 vim/bundle/ack.vim/README
  2. +0 −50 vim/bundle/ack.vim/plugin/ack.vim
View
@@ -1,13 +0,0 @@
-This is a mirror of http://www.vim.org/scripts/script.php?script_id=2572
-
-This plugin is a front for the Perl module App::Ack. Ack can be used as a replacement for 99% of the uses of grep. This plugin will allow you to run ack from vim, and shows the results in a split window.
-
-Search recursively in {directory} (which defaults to the current directory) for the {pattern}.
-
-Files containing the search term will be listed in the split window, along with the line number of the occurrence, once for each occurrence. [Enter] on a line in this window will open the file, and place the cursor on the matching line.
-
-Where you would use :grep, :grepadd, :lgrep, and :lgrepadd, you can use :Ack, :AckAdd, :LAck, and :LAckAdd respectively.
-
-For more information, and to check out the unstable, development version of the plugin, go here: http://github.com/mileszs/ack.vim/tree/master
-
-This Vim plugin is derived (and by derived, I mean copied, essentially) from Antoine Imbert's blog post Ack and Vim Integration (http://blog.ant0ine.com/2007/03/ack_and_vim_integration.html) (in particular, the function at the bottom of the post).
@@ -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\\ -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(<q-args>)
-command! -nargs=* -complete=file AckAdd call AckAdd(<q-args>)
-command! -nargs=* -complete=file LAck call LAck(<q-args>)
-command! -nargs=* -complete=file LAckAdd call LAckAdd(<q-args>)

0 comments on commit 395f12c

Please sign in to comment.