move the nerdtree functions to the correct place (not in .vimrc)