From 24fb70b513ebc1c0fa146ede630cf679530b8951 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Fri, 29 Mar 2013 08:02:56 -0700 Subject: [PATCH] Use silver searcher for lightning fast :Gsearch --- README.md | 8 ++------ Rakefile | 2 +- vim/plugin/settings/grep.vim | 2 ++ 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 vim/plugin/settings/grep.vim diff --git a/README.md b/README.md index 63e1215..fa30eb7 100644 --- a/README.md +++ b/README.md @@ -77,13 +77,9 @@ 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 +We automatically install a few useful packages including ack, ctags, git, and hub, and the silver searcher ('ag') You can install macvim from brew as well, or download it from their website. -```bash -brew install ack ctags git hub macvim tmux reattach-to-user-namespace -``` - ### Github Issues: [ghi gem](https://github.com/stephencelis/ghi) We include the `ghi` command. Try `ghi list` and have fun managing issues from command line! @@ -403,7 +399,7 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam * tabularize - align code effortlessly by using :Tabularize /[character] to align by a character, or try the keymaps * yankring - effortless sanity for pasting. every time you yank something it goes into a buffer. after hitting p to paste, use ctrl-p or ctrl-n to cycle through the paste options. great for when you accidentally overwrite your yank with a delete. * surround - super easy quote and tag manipulation - ysiw" - sourround inner word with quotes. ci"' - change inner double quotes to single quotes, etc - * greplace - use :Gsearch to find across many files, replace inside the changes, then :Greplace to do a replace across all matches + * greplace - use :Gsearch to find across many files, replace inside the changes, then :Greplace to do a replace across all matches - made lightning fast with Silver Searcher * ConqueTerm - embedded fully colorful shell inside your vim * vim-ruby-conque - helpers to run ruby,rspec,rake within ConqueTerm * vim-markdown-preview - :Mm to view your README.md as html diff --git a/Rakefile b/Rakefile index 9460066..cb08239 100644 --- a/Rakefile +++ b/Rakefile @@ -96,7 +96,7 @@ def install_homebrew puts "======================================================" puts "Installing Homebrew packages...There may be some warnings." puts "======================================================" - run %{brew install ack ctags git hub} + run %{brew install ack ctags git hub tmux reattach-to-user-namespace the_silver_searcher} puts puts end diff --git a/vim/plugin/settings/grep.vim b/vim/plugin/settings/grep.vim new file mode 100644 index 0000000..6d5e3c3 --- /dev/null +++ b/vim/plugin/settings/grep.vim @@ -0,0 +1,2 @@ +"Use the silver searcher for lightning fast Gsearch command +set grepprg="ag"