简体   繁体   中英

How can I set only two vsplitted windows in VIM/NERDTree?

The left side window will be the NERDTree tree-like menu and if I type "s" on any filename it will be opened at the right side window as vsplited.

Now if I press "s" again on any file from the left side tree-like menu that file will be opened at the right side window as splited window but the previous window will be replaced or the previous window will be closed.

How can I do this?

When you are on the window you wish to repace (the right one) you can press Ctrl + w twice to move to NERDTree. If you then press o then NERDtree will open the file into the previously used window (the last one).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM