In the Ubuntu Docker image, the Nerdtree plugin is installed for vim, but the "+" should be displayed on the left side of the directory, but it becomes "? ~v" and the directory cannot be opened.
Solution:
Edit the Nerd_tree.vim file to
If !nerdtree#runningwindows () && !nerdtree#runningcygwin () call s: Initvariable ("g:nerdtreedirarrowexpandable", "? ~v?") call s: Initvariable ("g:nerdtreedirarrowcollapsible", "? ~v?") else call s:initvariable ("G:nerdtreedirarrowexpandable", "+") call s:initvariable ("g:nerdtreedirarrowcollapsible", "~") endif
Change to:
"If !nerdtree#runningwindows () && !nerdtree#runningcygwin () " call s: Initvariable ("g:nerdtreedirarrowexpandable", "? ~v?") " call s: Initvariable ("g:nerdtreedirarrowcollapsible", "? ~v?") "else call s:initvariable ("G:nerdtreedirarrowexpandable", "+") call s:initvariable ("g:nerdtreedirarrowcollapsible", "~") "endif
Vim Nerdtree plugin cannot open directory, display? ~v?