user3029591
user3029591

Reputation:

How to split VIM window to show content and enable command

I am currently reading a manual about how to compile and run a program. Currently I have two terminals, one terminal shows the manual, the other terminal is where I follow the instructions and type the command. Is it possible to do those two things in one terminal. Just like show two files in one terminal. I want to read the instruction in the left side of the terminal window and type command in the right side of the terminal window. Any advice?

Upvotes: 0

Views: 95

Answers (3)

romainl
romainl

Reputation: 196546

I don't know what's your problem, having two terminal emulator windows side by side is perfectly acceptable. If you really want to add complexity to your learning experience, you can try one of these terminal multiplexers:

or, if such a thing exists for your platform, a terminal emulator with split windows like:

Upvotes: 1

exussum
exussum

Reputation: 18550

you can use one of the following

:tabe filename to open a new tab containing filename or nothing for a blank tab. gt to switch and gT to switch backwards.

:sp to split the current window ^w j to jump down and ^w k to jump up

or :vsp to split vertically (so you can read in the left) ^w h to jump left and ^w l to jump right

all key strokes are in command mode

Upvotes: 0

Felipe Juarez
Felipe Juarez

Reputation: 1

In VIM you can create new "windows"/panes just type

:vnew

For vertical window and

:new

For horizontal window

If you want to know more about windows you can check this or if you want to know more about VIM features you can try this

Upvotes: 0

Related Questions