|
|
@ -1350,8 +1350,8 @@ a list of available commands.
|
|
|
|
To open a new empty buffer in a vertical split on the right half
|
|
|
|
To open a new empty buffer in a vertical split on the right half
|
|
|
|
of your current window, use Ctrl-w nv (i.e., press Ctrl
|
|
|
|
of your current window, use Ctrl-w nv (i.e., press Ctrl
|
|
|
|
and w simultaneously, then press n, followed by v). Your current
|
|
|
|
and w simultaneously, then press n, followed by v). Your current
|
|
|
|
window will now split in 2 vertically, a new empty buffer split
|
|
|
|
window will now split in 2 vertically. A new empty buffer split
|
|
|
|
will appear on the right half, and your cursor will jump to the
|
|
|
|
will appear on the right half and your cursor will jump to the
|
|
|
|
new vertical split.
|
|
|
|
new vertical split.
|
|
|
|
|
|
|
|
|
|
|
|
To create a new empty buffer in a horizontal split, press
|
|
|
|
To create a new empty buffer in a horizontal split, press
|
|
|
@ -1368,7 +1368,7 @@ new horizontal split.
|
|
|
|
|
|
|
|
|
|
|
|
Use Ctrl-w k to move to the split above your current split. Use
|
|
|
|
Use Ctrl-w k to move to the split above your current split. Use
|
|
|
|
Ctrl-w j to move to the split below. Use Ctrl-w h to move to
|
|
|
|
Ctrl-w j to move to the split below. Use Ctrl-w h to move to
|
|
|
|
the split on the left, and Ctrl-w l to move to the split on the
|
|
|
|
the split on the left and Ctrl-w l to move to the split on the
|
|
|
|
right. To navigate to the next split (in the order they were
|
|
|
|
right. To navigate to the next split (in the order they were
|
|
|
|
opened), press Ctrl-w w.
|
|
|
|
opened), press Ctrl-w w.
|
|
|
|
|
|
|
|
|
|
|
@ -1388,9 +1388,9 @@ the left press Ctrl-w o to close all except this split.
|
|
|
|
= CHAPTER 13.3 SPLIT CURRENT BUFFER =
|
|
|
|
= CHAPTER 13.3 SPLIT CURRENT BUFFER =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
|
|
|
|
To split the view of the current buffer, use Ctrl-w s to split it
|
|
|
|
Use Ctrl-w s to split the view of the current buffer horizontally
|
|
|
|
horizontally and open a copy on the right, and Ctrl-w v to split it
|
|
|
|
and Ctrl-w v to split it vertically with the buffer opened in both
|
|
|
|
vertically with the buffer opened in both splits.
|
|
|
|
splits.
|
|
|
|
|
|
|
|
|
|
|
|
Close extra splits with Ctrl-w o to return to a single window view.
|
|
|
|
Close extra splits with Ctrl-w o to return to a single window view.
|
|
|
|
|
|
|
|
|
|
|
@ -1435,12 +1435,12 @@ or path instead of a new empty buffer.
|
|
|
|
Open a split on the left with :vs hello1 and then a split below
|
|
|
|
Open a split on the left with :vs hello1 and then a split below
|
|
|
|
with :hs hello2.
|
|
|
|
with :hs hello2.
|
|
|
|
|
|
|
|
|
|
|
|
From hello2, press Ctrl-w K to swap it with the split above. Now,
|
|
|
|
From hello2, press Ctrl-w K to swap it with the split above. Now
|
|
|
|
hello2 is at the top, while hello1 is at the bottom.
|
|
|
|
hello2 is at the top while hello1 is at the bottom.
|
|
|
|
|
|
|
|
|
|
|
|
Still from hello2, press Ctrl-w H to swap with the split on the
|
|
|
|
Still from hello2, press Ctrl-w H to swap with the split on the
|
|
|
|
left: now, hello2 is on the left, and the tutor is on the top
|
|
|
|
left: now hello2 is on the left and the tutor is on the top
|
|
|
|
right. After Ctrl-w, you can use HJKL to split with the buffer
|
|
|
|
right. After Ctrl-w you can use HJKL to split with the buffer
|
|
|
|
on the left / below / above / on the right.
|
|
|
|
on the left / below / above / on the right.
|
|
|
|
|
|
|
|
|
|
|
|
Move back to the tutor split, and press Ctrl-w o to only keep
|
|
|
|
Move back to the tutor split, and press Ctrl-w o to only keep
|
|
|
@ -1476,8 +1476,8 @@ the tutor window.
|
|
|
|
= CHAPTER 13.7 OPEN SPLIT FROM FILEPICKER =
|
|
|
|
= CHAPTER 13.7 OPEN SPLIT FROM FILEPICKER =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
|
|
|
|
Splits can also be opened directly from the filepicker. Press
|
|
|
|
Splits can also be opened directly from the file picker. Press
|
|
|
|
space f to open the filepicker. From there, you can type in text
|
|
|
|
space f to open the file picker. From there, you can type in text
|
|
|
|
to perform file lookup with fuzzy matching, and use the arrows
|
|
|
|
to perform file lookup with fuzzy matching, and use the arrows
|
|
|
|
up and down to move the selected file (indicated by the > symbol).
|
|
|
|
up and down to move the selected file (indicated by the > symbol).
|
|
|
|
If you want to exit the file picker, press Escape.
|
|
|
|
If you want to exit the file picker, press Escape.
|
|
|
@ -1498,7 +1498,7 @@ splits except this one.
|
|
|
|
= CHAPTER 13 RECAP =
|
|
|
|
= CHAPTER 13 RECAP =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
|
|
|
|
Splits can be used to display either the same buffer several times,
|
|
|
|
Splits can be used to display either the same buffer several times
|
|
|
|
or several buffers. To access the main windows and splits commands,
|
|
|
|
or several buffers. To access the main windows and splits commands,
|
|
|
|
press Ctrl-w . You can move between splits with Ctrl-w hjkl ,
|
|
|
|
press Ctrl-w . You can move between splits with Ctrl-w hjkl ,
|
|
|
|
you can close a split with Ctrl-w q , and you can close all but
|
|
|
|
you can close a split with Ctrl-w q , and you can close all but
|
|
|
|