Skip to content

Instantly share code, notes, and snippets.

@scrooloose
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scrooloose/b3936e975c39777b1530 to your computer and use it in GitHub Desktop.
Save scrooloose/b3936e975c39777b1530 to your computer and use it in GitHub Desktop.
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