Vim Tips Wiki
Register
Edit Page
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 13: Line 13:
 
|category2=
 
|category2=
 
}}
 
}}
Check out [http://www.drchip.org/astronaut/vim/align.html DrChip's Alignment Tool] to see some examples of text alignment. The alignment is done with the Align.vim and AlignMaps.vim plugins; you can get them from either {{script|id=294|text=script 294}} or from [http://www.drchip.org/astronaut/vim/index.html#ALIGN here]. Among many other things, this pair of plugins lets you:
+
Check out http://drchip.0sites.net/astronaut/vim/align.html and see some examples of text alignment. The alignment is done with the Align.vim and AlignMaps.vim plugins; you can get them from either {{script|id=294|text=script 294}} or from http://drchip.0sites.net/astronaut/vim/index.html#ALIGN. Amongst many other things, this pair of plugins lets you:
  +
*align C language statements on their = += -= /= etc symbols
+
1. align C language statements on their = += -= /= etc symbols
*align C language declararations: separate columns for types, *[, variable names, initializations (=), and comments (// or /* .. */)
 
  +
*align C/C++ language comments (//, /* .. */)
 
 
2. align C language declararations: separate columns for types, *[, variable names, initializations (=), and comments (// or /* .. */)
*align C/C++ language (ansi) function argument lists
 
  +
*align LaTeX tables on their && separators
 
*align HTML tables with </TD><TD> separators
+
3. align C/C++ language comments (//, /* .. */)
  +
*align on several characters: < ? : | @ ; (or modify them to handle whatever alignment characters you want)
 
 
4. align C/C++ language (ansi) function argument lists
  +
 
5. align LaTeX tables on their && separators
  +
  +
6. align HTML tables with </TD><TD> separators
  +
 
7. align on several characters: < ? : | @ ; (or modify them to handle whatever alignment characters you want)
   
 
The align plugin also supports:
 
The align plugin also supports:
Line 28: Line 35:
 
*specifiable separator padding
 
*specifiable separator padding
 
*visual range specified alignment, including via visual-block
 
*visual range specified alignment, including via visual-block
*an Align.txt help file is available
+
*a <Align.txt> help file is now available
   
 
==Comments==
 
==Comments==
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)