VIM: How can i open a file at right side as vsplit from a left side NerdTree panel?

shibly picture shibly · Oct 27, 2011 · Viewed 43.6k times · Source

I installed NerdTree plugin.

How can i open a file at right side as vsplit from a left side NerdTree panel ?

Answer

Prince Goulash picture Prince Goulash · Oct 27, 2011

To make vsplit put the new buffer on the right of the current buffer:

set splitright

Similarly, to make split put the new buffer below the current buffer:

set splitbelow

I haven't tried this with NerdTree, however.