Vim posts (continuous update)

Source: Internet
Author: User
Vim batch Modify multi-file data

: ar[gs] Print parameter list
: Arga[dd] Add item to parameter list
: Argd[elete] Delete item from parameter list
: Arge[dit] Add item to parameter list and edit this item
: Argdo executes a command for all items in the parameter list
: Argg[lobal] Defining a global parameter list
: argl[ocal] Defines a local parameter list
: Argu[ment] Go to the file specified in the parameter list
Cases:
: args *.txt load all txt suffix files in the current directory (without subdirectories) into the parameter list
: args d:\a\*.txt all txt suffix files in the target directory (without subdirectories) loaded into the parameter list
: args d:\a\**\*.txt loads all txt suffix files under the target directory (including subdirectories) into the parameter list
: Args View parameter list contents
: Argdo%s/aaa/bbb/ge | Update executes the statement substitution for all files within the parameter list (e stands for silent mode, update represents write)

Vim text Insert self-growth variable

: Let i=0 defines self-growth variables and initial values
* Locate the insertion position by finding the way
QQ will record the operation to the Q register
: exe ' normal i '. I|let I=i+1 performs an insert operation and increments the variable
N Find Next Location
Q End Operation Record
[email protected]@[[email protected]] repeat operation Record

Vim posts (continuous update)

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.