diff --git a/README.md b/README.md index 29733f0..b8fcd97 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Read on to learn what YADR provides! Homebrew is _the missing package manager for OSX_. Installed automatically. -We automatically install a few useful packages including ack, ctags, git, and hub, and the silver searcher ('ag') +We automatically install a few useful packages including ctags, git, and hub, and the silver searcher ('ag') You can install macvim from brew as well, or download it from their website. ### Github Issues: [ghi gem](https://github.com/stephencelis/ghi) @@ -413,6 +413,7 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam * color_highlight - use :ColorCodes to see hex colors highlighted * change-inside-surroundings - change content inside delimiters like quotes/brackets * Specky - used for color highlighting rspec correctly even if specs live outside of spec/ (rails.vim doesn't handle this) + * Ag - use :Ag to search across multiple files. Faster than Grep and Ack. #### General enhancements that don't add new commands diff --git a/Rakefile b/Rakefile index ffa9199..0e57f1d 100644 --- a/Rakefile +++ b/Rakefile @@ -144,7 +144,7 @@ def install_homebrew puts "======================================================" puts "Installing Homebrew packages...There may be some warnings." puts "======================================================" - run %{brew install zsh ack ctags git hub tmux reattach-to-user-namespace the_silver_searcher} + run %{brew install zsh ctags git hub tmux reattach-to-user-namespace the_silver_searcher} puts puts end diff --git a/vim/plugin/settings/quickfix-search.vim b/vim/plugin/settings/quickfix-search.vim index c4c78c5..e1d8e7e 100644 --- a/vim/plugin/settings/quickfix-search.vim +++ b/vim/plugin/settings/quickfix-search.vim @@ -2,8 +2,8 @@ " Open a Quickfix window for the last search. nnoremap q/ :execute 'vimgrep /'.@/.'/g %':copen -" Ack for the last search. -nnoremap qa/ :execute "Ack! '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "", "") . "'" +" Ag for the last search. +nnoremap qa/ :execute "Ag! '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "", "") . "'" " GitGrep the last search (my own invention) nnoremap qg/ :execute "GitGrep '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "", "") . "'" diff --git a/vim/vundles.vim b/vim/vundles.vim index 1645067..26a214a 100644 --- a/vim/vundles.vim +++ b/vim/vundles.vim @@ -48,7 +48,7 @@ Bundle "tpope/vim-git" Bundle "vim-scripts/lastpos.vim" Bundle "sjl/gundo.vim" Bundle "vim-scripts/sudo.vim" -Bundle "mileszs/ack.vim" +Bundle "rking/ag.vim" Bundle "nelstrom/vim-textobj-rubyblock" Bundle "kana/vim-textobj-user" Bundle "austintaylor/vim-indentobject"