Vim Common commands

Source: Internet
Author: User

Multi-Window Segmentation

": sp/vsp" Portrait/Landscape Split window

"Ctrl+w" jumps in the window

Multiple Files Open

Vim name1 name2 Name3

": n/n filename/bn/bp" When opening multiple files jump/Next File/previous file in multiple files (cannot jump in multiple windows)

Skip transfer Warning Save when multiple files are not open at the same time

": q/q!/x" closed window/force close window/write and close window

":e/e file/e! file/e# or ctrl+^"Reload current file/close current file Open new File/force close current File open new File/go back to the file you just edited

Cursor movement

"G/gg" jumps to the end of the file/start

"E/e/b/b/w/w" moves to (next) Word End/forward to (previous) Word End/move to (next) word start)

E/B/W move to punctuation if the word has punctuation

Flip Screen

"Ctrl+d/ctrl+u" down/up half screen

"Ctrl+f/ctrl+b" turn down/up one screen

"Ctrl+e/ctrl+y" scrolls down/Up one line

"Zt/zz/zb" displays the current line to the top/center/bottom of the screen

State

": F or ctrl+g" display status

": F Name" Changes the current edit name, which is saved at the same time as the Save As

Browse the file system

"Vex/sex" Portrait/Landscape Split window displays file system

Vim Common commands

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.