Skip to content

Instantly share code, notes, and snippets.

@scrooloose scrooloose/vimrc

Last active Aug 29, 2015
Embed
What would you like to do?
fu! NERDTreeFindPrevBuf()
if g:NERDTree.IsOpen()
NERDTreeClose
elseif (!filereadable(bufname('%')) || (bufname('%') == '__Tag_List__') || (bufname('%') == '__Tagbar__'))
echo "Previous buf not valid or readable file."
NERDTree
else
NERDTreeFind
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.