Vim changes the window size

Source: Internet
Author: User

6. Change the window size * window-resize *

* CTRL-W _ = *
CTRL-W = makes all windows (almost) equal width, height, but current Windows use 'winheight' and
'Winwidth '.

: Res [ize]-N *: res **: resize ** CTRL-W _-*
CTRL-W-causes the current window height to minus N (default is 1 ).
If this parameter is used after 'signature', the width is reduced by N.

: Res [ize] + N * CTRL-W _ + *
CTRL-W + adds n to the current window height (default is 1 ).
If this parameter is used after 'signature', n is added to the width.

: Res [ize] [N]
CTRL-W Ctrl-_ * CTRL-W_CTRL-_ ** CTRL-W __*
CTRL-W _ sets the height of the current window to n (default is the maximum possible height ).

Z {Nr} <CR> set the height of the current window to {Nr }.

* CTRL-W _ <*
CTRL-W <causes the current window width to minus N (default is 1 ).

* CTRL-W _> *
CTRL-W> adds n to the current window width (default is 1 ).

: Vertical res [ize] [N] *: vertical-resize ** CTRL-W_bar *
CTRL-W | set the width of the current window to n (default is the maximum possible width ).

7. Specify the row for the operation
: 1, $ S/^ \ s */g
23,343 S/AB/CD/Gi

The above is actually all nonsense. Just now, I had a hack, just a keyboard ing, which is very useful.

"""""""""""""""Resize Window"""""""""""""""""""""""""""map <F2> <ESC><C-W>-map <F3> <ESC><C-W>+map <F4> <ESC><C-W><map <F5> <ESC><C-W>>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.