For example, consider the lines: let range = '%' let foo = 'Vim' let something = 42 With this tip, if you visually select the lines then press \a (assuming the default backslash leader key), the lines would be changed to: let range = '%' let foo = 'Vim' let something = 42 Now consider: int Add(int a, int b); void Point(doublePt dp); const *char GetString(unsigned int index); Selecting these lines, then entering the command :Align \S\+( would align the function names. Repeating, with command :Align ( would then align the (. Doing both results in:
Attributes | Values |
---|
rdfs:label
| - Regex-based text alignment
|
rdfs:comment
| - For example, consider the lines: let range = '%' let foo = 'Vim' let something = 42 With this tip, if you visually select the lines then press \a (assuming the default backslash leader key), the lines would be changed to: let range = '%' let foo = 'Vim' let something = 42 Now consider: int Add(int a, int b); void Point(doublePt dp); const *char GetString(unsigned int index); Selecting these lines, then entering the command :Align \S\+( would align the function names. Repeating, with command :Align ( would then align the (. Doing both results in:
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| |
Text
| |
Author
| |
Complexity
| |
Created
| |
ID
| - 294(xsd:integer)
- 894(xsd:integer)
|
NEXT
| |
Rating
| |
abstract
| - For example, consider the lines: let range = '%' let foo = 'Vim' let something = 42 With this tip, if you visually select the lines then press \a (assuming the default backslash leader key), the lines would be changed to: let range = '%' let foo = 'Vim' let something = 42 Now consider: int Add(int a, int b); void Point(doublePt dp); const *char GetString(unsigned int index); Selecting these lines, then entering the command :Align \S\+( would align the function names. Repeating, with command :Align ( would then align the (. Doing both results in: int Add (int a, int b); void Point (doublePt dp); const *char GetString (unsigned int index);
|