Vim shortcut key package (ii)

Source: Internet
Author: User

Show line Numbers

: Set num

cancel line number

open color

:syntax on

off color

find

/ Find content    Look down   n next    N previous

replace /p>

:1,10s/old/new/g  Span style= "font-family: ' New song body ';" > replace 1 to 10 all old Span style= "font-family: ' New song body ';" > new

:%s/old/new/g replace the entire file. Old to be New

: 1,5s/^/#/g Notes 1 to 5 rows

: 1,5s/^#//g Cancel comments from 1 to 5 lines

: 1,5s/^/\|\|/g 1 to the 5 Line header plus | |

:1,5s/^\|\|//g 1 to 5 line Cancel the beginning of Span style= "font-family: ' Times New Roman ';" >||

:r /strong>

:r! command     write the command result to the line where the cursor is located

:help /strong>

:help command find command help

:q /strong>

exit

:q!

forced exit

:wq /strong>

save exit

:wq!

Don't save exit

zz /strong>

save exit

ZQ

Do not save exit


This article is from the "13091780" blog, please be sure to keep this source http://13101780.blog.51cto.com/13091780/1962176

Vim shortcut key package (ii)

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.