windows
Last updated
Was this helpful?
Last updated
Was this helpful?
[!TIP|label:reference:]
n CTRL-W_n CTRL-W_CTRL-N :[N]new :new Create a new window and start editing an empty file in it. Make new window N high (default is to use half the existing height). Reduces the current window height to create room (and others, if the option is set and isn't "hor"). Also see and . If is not empty, the first format given will be used for the new buffer. If is empty, the of the current buffer is used. This can be overridden with the argument. Autocommands are executed in this order:
for the current
for the new
for the current buffer
for the new buffer This behaves like a "" first, and then an "" command.
:wincmd l
ctrl + w ⇢ l
:wincmd h
ctrl + w ⇢ h
:wincmd j
ctrl + w ⇢ j
:wincmd k
ctrl + w ⇢ k
:wincmd r
ctrl + w ⇢ r
[!NOTE|label:reference:]
maximium split window: ctrl + w ⇢ _
maximium vsplit window: ctrl + w ⇢ |
resize window: ctrl + w ⇢ |
:res
is the shortcut of:resize
:res[ize] n
setup the width to lines
:res[ize] -n
reduce lines of the width
:res[ize] +n
extend lines of the width
ctrl + w ⇢ +
extend 1 line
:wincmd +
extend 1 line
ctrl + w ⇢ -
reduce 1 line
:wincmd -
reduce 1 line
ctrl + w ⇢ =
resize to default: 50%
:wincmd =
resize to default: 50%
ctrl + w ⇢ _
maximum the window
:wincmd _
maximum the window
:vertical res[ize] n
setup the width to columns
:vertical res[ize] -n
reduce columns of the width
:vertical res[ize] +n
extend columns of the width
ctrl + w ⇢ >
extend 1 column
:wincmd >
extend 1 column
ctrl + w ⇢ <
reduce 1 column
:wincmd <
reduce 1 column
ctrl + w ⇢ =
resize to default: 50%
:wincmd =
resize to default: 50%
ctrl + w ⇢ |
maximum the window
:wincmd ⎮
maximum the window