Vim Editor Common operations

Source: Internet
Author: User

CTRL +F PAGE DOWN CTRL+B Page Down u cancel the last operation u cancel the current line Operation ZZ Saves the current content and exits
GG Jump to the first line
G Jump to last line
#gg Jump to # Line:w /root/123~///old/new/find character and replace +g replace all; C Confirm each substitution action: #,# s/old/new/G replaces line number #, #内的字符J merges the current row and the next line:1,23 Copy the first row, After the second line to the third line: syntax off (on) to open (off) highlight

Set the TAB key to 4 spaces

Tail -5 /etc/vimrc" set Tab key to 4 spaces set ts=4set Expandtabset Autoindent

Set Automatic line Indentation

Tail - /etc/" set auto indent set autoindentset cindent

Vim Editor Common operations

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.