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)