Skip to content

Commit

Permalink
Use silver-searcher executable over ack, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
iangreenleaf committed Apr 26, 2016
1 parent 01cffe6 commit 76a8b68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vimrc
Expand Up @@ -228,6 +228,10 @@ cmap w!! %!sudo tee > /dev/null %
" Reload .vimrc with :VimRC
command! VimRC :source $MYVIMRC

if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif

" Strip HTML
command! -range StripHtml :<line1>,<line2>s/<[^>]\+>//g | :silent! <line1>,<line2>g/^\s*$/d
" Strip HTML, ignoring some tags. Takes one argument, like `img\|span\|p`
Expand Down

0 comments on commit 76a8b68

Please sign in to comment.