28 Nov '13, 1am

Faster Grepping in Vim

Dan Croak November 27, 2013 vim We often search our projects for specific text within Vim like so: :grep sometext However, we have a need for speed. How can we grep faster? Override to use The Silver Searcher grep is a built-in command of Vim. By default, it will use our system's grep command. We can overwrite it to use The Silver Searcher 's ag command instead by putting this in our ~/.vimrc : " The Silver Searcher if executable('ag') " Use ag over grep set grepprg=ag\ --nogroup\ --nocolor " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' " ag is fast enough that CtrlP doesn't need to cache let g:ctrlp_use_caching = 0 endif Search for the word under the cursor This searches for the text under the cursor and shows the results in a "quickfix" window: " bind K to grep word under cursor nnoremap K...

Full article: http://robots.thoughtbot.com/faster-grepping-in-vim/

Tweets

Faster Grepping in Vim

robots.thoughtbot.com 03 Dec '13, 7am

Dan Croak November 27, 2013 vim We often search our projects for specific text within Vim like so: :grep sometext However,...

No matter your running experience, slowing down...

runnersworld.com 27 Nov '13, 5pm

WALK SIGNAL: You're fighting fatigue or leg soreness near the end of long runs or races. This often means you've gone out ...

New, aggressive HIV strain causes Aids faster

straitstimes.com 28 Nov '13, 11pm

STOCKHOLM (AFP) - A new and more aggressive strain of HIV discovered in West Africa causes significantly faster progressio...

@hotgazpacho yeah, it's a bit different.

robots.thoughtbot.com 28 Nov '13, 3am

Use Factory Girl's build_stubbed for a Faster Test Suite Josh Clayton May 09, 2012 factory girl rails slow tests testing W...

The Vim Learning Curve is a Myth

robots.thoughtbot.com 15 Nov '13, 5pm

The Vim Learning Curve is a Myth Ben Orenstein November 22, 2011 vim I've been speaking about and teaching people vim for ...

No matter your running experience, slowing down...

runnersworld.com 03 Dec '13, 2pm

WALK SIGNAL: You're fighting fatigue or leg soreness near the end of long runs or races. This often means you've gone out ...

Sort lines alphabetically in vim

robots.thoughtbot.com 19 Nov '13, 7pm

Sort Lines Alphabetically In Vim Dan Croak February 01, 2013 vim Imagine you're working in vim. You come across this code:...

Vim Spell-Checking

Vim Spell-Checking

robots.thoughtbot.com 19 Nov '13, 6pm

Dan Croak November 19, 2013 vim There are times when we edit prose in Vim, such as in a project README or git commit messa...