In the VIM scripting language, is there a builtin for jump to NERDTree window?
I know there's NERDTree and NERDTreeToggle,
however the function I want is:
if there is not a NERDTre开发者_如何转开发e window, pop one up if there already is one, switch to the NERDTree window
Thanks!
Just use the NERDTree command. It seems to do this for you unless I'm missing something you want. You can use custom and inbuilt commands straight in vimscript. Eg.
function NerdyFoo()
echo "FooBar"
NERDTree
echo "Wibblybits"
endfun
:call NerdyFoo()
精彩评论