Skip to content

Instantly share code, notes, and snippets.

@joepestro
Created June 9, 2011 01:22
Show Gist options
  • Save joepestro/1015827 to your computer and use it in GitHub Desktop.
Save joepestro/1015827 to your computer and use it in GitHub Desktop.
Adds :NERDTreeFindHighlight command to act like TextMate's Reveal in Project
" find, then highlight file
function! NERDTreeFindHighlight()
let s:filename = expand("%:t")
NERDTreeFind
silent! exe "normal /" . s:filename . "/\<CR>"
endfunction
command! NERDTreeFindHighlight call NERDTreeFindHighlight()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment