Skip to content

Instantly share code, notes, and snippets.

@iamjwc
Created August 24, 2009 19:00
Show Gist options
  • Save iamjwc/174068 to your computer and use it in GitHub Desktop.
Save iamjwc/174068 to your computer and use it in GitHub Desktop.
command GrepWord :execute 'grep -r --exclude=metrics/coverage/* --exclude=*.log --exclude=*.*-base --exclude=vendor/* --exclude=*.tmp '.expand('<cword>').' *' | :copen | :cc
nnoremap <c-j> :cnext<CR> :norm! zz<cr>
nnoremap <c-k> :cprev<CR> :norm! zz<cr>
nnoremap <c-n> :tabnew<CR>
nnoremap <c-l> :tabnext<CR>
nnoremap <c-h> :tabprev<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment