After opening NERDTree and entering vim, how can the cursor be placed in the file editing area on the right by default?
天蓬老师
天蓬老师 2017-05-16 16:41:30
0
1
810
After configuring NERDTree to be automatically enabled by default in

.vimrc, every time you enter vim, the cursor is in the NERDTree on the left, and you have to manually ctrl+w+w to the right editing area, which is very troublesome.
I searched online for a while but couldn't find the corresponding configuration. I don't know how the experts configured it. Please give me some advice XD

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
世界只因有你

Can be set as follows:

autocmd VimEnter * NERDTree
wincmd w
autocmd VimEnter * wincmd w
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template