Vim's quick action

Source: Internet
Author: User
Tags function definition

Tag: equals ' function ' defines command height positioning meaning character shortcut

One. Cursor movement

^ to the first non-whitespace character of the line.

+ to the first non-whitespace character at the next line

-to the first non-whitespace character on the previous line

`. To last modified point

<c-o> to the last position, <c-i> return to the later position

M{A-Z} Mark I one position, ' {A-Z} back to the location of the tag

"To a marker at the cursor

: N+enter to Nth row (equals ng), n+enter to the nth row below

GD to function definition (temporarily unused)

W After the beginning of a word, w after the beginning of a word (ignoring punctuation)

W After the end of a word, w after the end of a word (ignoring punctuation)

B Before the beginning of a word, b the beginning of a word (ignoring punctuation)

FX to the first occurrence of X position in the bank

Nfx to the position of the first nth occurrence of the bank X

Two. Screen positioning

<c-e> roll a line on the screen

<c-y> scrolling down one line

ZZ Current line as Screen Center

ZT current line as top row of screen

ZB the current row as the bottom row of the screen
(above three commands plus a number, meaning "nth line")

Three. Indent in

>> Backward indent,<< forward indent

= = Automatic Alignment

Four. Multi-window

<c-w> n + Increase the current window n row height

<c-w> N-Reduce the current window n row height

<c-w> n > Increase current window n column width

<c-w> N < reduce current window N column width

&LT;C-W&GT;+R/X/R with the window next to the rotation

&LT;C-W&GT;+H/J/K/L move the current window to the top edge and occupy all width/height

Vim's quick action

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.