0

I want to have a 4 grid layout in vim. I am using the NERDTree to open multiple files. Whenever I use "s" or "i", files are open in my first column (I have two columns).

Please see picture:

enter image description here

How can I move one file to the right? So that I have the 4 grid layout that I want.

I've tried this:

Vim: Move window left/right?

But this is for moving yourself between windows (or buffers I think they are called)

Thanks for your help.

AlbertMunichMar
  • 1,680
  • 5
  • 25
  • 49
  • I've not used nerd tree so this information might be entirely useless, but normally when opening new viewports (the 'files', which are actually buffers in viewports), the location they open in is based on which viewport your cursor is in. Try putting your cursor in a different viewport using `ctrl+w+h/j/k/l` before opening another file. If this is entirely unhelpful let me know and I'll nuke the comment. – Stun Brick Aug 28 '18 at 07:44
  • yeah, the problem is that I am in the second column, when I typed :NERDTree, the cursor dissapears from this file in the column and goes to the NERDTree. So when I open the file with "s" or "i", it is always added in the first column by default. – AlbertMunichMar Aug 28 '18 at 12:05
  • I see. Unfortunately I can't offer you anything but roundabout hacks. I've decided to leave the comment up for future readers. – Stun Brick Aug 28 '18 at 15:05

0 Answers0