diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 20:18:17 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 20:25:29 +0800 |
commit | c65b1f3e15662cd14c443e34862237d3dee30977 (patch) | |
tree | 326c4820ec0d8199c45446091177ca9b38bf5930 /runtime | |
parent | db2e5f46f5aa5a6300395eaa9c4923835683c770 (diff) | |
download | rneovim-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')
-rw-r--r-- | runtime/doc/windows.txt | 13 |
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). |