14

I would like to use notepad++ like vim split open in horizontal mode.

Opening files in vertical mode can be done by move file to other view. I need to open files in vertical. Is there any plugin available out.

prasanna
  • 161
  • 2
  • 4
  • 10

2 Answers2

18

Open a file to the other view, then rightclick the seperator bar and choose rotate. It will go from horizontal to vertical mode, and back again on another rotate command.

enter image description here

LPChip
  • 59,229
  • 10
  • 98
  • 140
  • 6
    How incredibly nonintuitive – Veridian Mar 01 '17 at 00:12
  • @Veridian true, searched ALL the menus for this and the view menu three times :D – Nicolas Jun 16 '21 at 08:14
  • See also: https://superuser.com/q/215917/484629 – Jim Fischer Apr 02 '23 at 21:23
  • For this command to be useful, you also need to set `View/Synchronize Horizontal Scrolling` https://superuser.com/a/587280/626100 – divenex Apr 14 '23 at 12:36
  • @divenex that is not true. I often use this method when working with scripts that are located in more than one files. Like my main class and my subclasses. The subclasses are in another file, and being able to quickly look up the syntax in the other file makes it very easy to program in the main class. – LPChip Apr 15 '23 at 13:37
-2

ctrl-w s will split the screen into 2 parts (windows), one above the other. You can switch windows with ctrl-w ctrl-w.

Read more info with :help window ( :help also opens a new window to display the help info :-)

wurtel
  • 1,497
  • 8
  • 8
  • 1
    ctrl-w in notepad++ will closes the current window, please tell what editor you are referred above. – prasanna Sep 11 '14 at 05:14
  • Ah, I misread your question, I thought you wanted to do something in vim instead of the other way round. – wurtel Sep 11 '14 at 06:40