About: Regex-based text alignment   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

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:

AttributesValues
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
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 893(xsd:integer)
Category
  • Usage
Text
  • Align
Author
  • Nall-ohki
Complexity
  • intermediate
Created
  • 2005(xsd:integer)
ID
  • 294(xsd:integer)
  • 894(xsd:integer)
NEXT
  • 895(xsd:integer)
Rating
  • 17(xsd:integer)
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);
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software