aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-01 20:18:17 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-01 20:25:29 +0800
commitc65b1f3e15662cd14c443e34862237d3dee30977 (patch)
tree326c4820ec0d8199c45446091177ca9b38bf5930 /runtime/doc
parentdb2e5f46f5aa5a6300395eaa9c4923835683c770 (diff)
downloadrneovim-c65b1f3e15662cd14c443e34862237d3dee30977.tar.gz
rneovim-c65b1f3e15662cd14c443e34862237d3dee30977.tar.bz2
rneovim-c65b1f3e15662cd14c443e34862237d3dee30977.zip
vim-patch:9.0.0342: ":wincmd =" equalizes in two directions
Problem: ":wincmd =" equalizes in two directions. Solution: Make ":vertical wincmd =" equalize vertically only and ":horizontal wincmd =" equalize horizontally only. https://github.com/vim/vim/commit/21c3a80a7fd6b7fc250ce5dc287963511f54b86f
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/windows.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
index 2627068a14..ddf4d09e92 100644
--- a/runtime/doc/windows.txt
+++ b/runtime/doc/windows.txt
@@ -235,9 +235,16 @@ and 'winminwidth' are relevant.
*:vert* *:vertical*
:vert[ical] {cmd}
Execute {cmd}. If it contains a command that splits a window,
- it will be split vertically.
+ it will be split vertically. For `vertical wincmd =` windows
+ will be equialized only vertically.
Doesn't work for |:execute| and |:normal|.
+ *:hor* *:horizontal*
+:hor[izontal] {cmd}
+ Execute {cmd}. Currently only makes a difference for
+ `horizontal wincmd =`, which will equal windows only
+ horizontally.
+
:lefta[bove] {cmd} *:lefta* *:leftabove*
:abo[veleft] {cmd} *:abo* *:aboveleft*
Execute {cmd}. If it contains a command that splits a window,
@@ -530,6 +537,10 @@ CTRL-W = Make all windows (almost) equally high and wide, but use
'winheight' and 'winwidth' for the current window.
Windows with 'winfixheight' set keep their height and windows
with 'winfixwidth' set keep their width.
+ To equalize only vertically (make window equally high) use
+ `vertical wincmd =`
+ To equalize only horizontally (make window equally wide) use
+ `horizontal wincmd =`
:res[ize] -N *:res* *:resize* *CTRL-W_-*
CTRL-W - Decrease current window height by N (default 1).