Align - Help folks to align text, eqns, declarations, tables, etc. Align and AlignMaps lets you align statements on their equal signs, make comment boxes, align comments, align declarations, etc. Note: this plugin is not a left&right margin justification tool! See vimscript#177, vimscript#2324, or vimscript#3728 for that. Note: if you have vim 7.1 or later, your vimball should unpack just fine without having to update it. There are two basic commands provided by this package: AlignCtrl options sep1 sep2 sep3 ...
The "sep#" are regular expressions which describe separators that delineate fields; Align will line up the separators. Ws-field-ws-sep-ws-field-ws-sep-ws-field-... Note that white-space (ws) surrounding separators is ignored. The Align package includes: Align : the basic alignment command AlignCtrl : provides options for the next call to :Align AlignMaps : many three or four key maps which support aligning C/C++ style declarations, ()?.. In addition, AutoAlign (vimscript#884) uses the Align function to align =s as you type. TextFormat - Quickly align and format paragraphs and text areas: left, right, justify, center. Right_align - Right alignment of string under cursor.
This script can be used to align the line under cursor to the right border.
The value of the right border column can be specified using global varialbe g:RightAlign_RightBorder in your .vimrc file, for example: let g:RightAlign_RightBorder = 80 If g:RightAlign_RightBorder is not set then value of option textwidth will be used. Alignment to the right border means that the right edge of the string will not exceed the specified value but will be as close as possible according to your shiftwidth and shiftround settings. For example if shiftwidth is 4, shiftround is set, g:RightAlign_RightBorder is 80 and length of the current line is 14, then first non-space character of this line will be moved to 65th column. Since version 0.5 the shiftround behaviour is active even If you did not set option shiftround. Let g:RightAlign_ShiftRound = 0 The script provides single command RightAlign with an optional argument. Justify - Simple text justifier inspired by Kartik Murari's format.vim (vimscript#27)
Surround.vim - Delete/change/add parentheses/quotes/XML-tags/much more with ease. Surround.vim is all about "surroundings": parentheses, brackets, quotes, XML tags, and more.
The plugin provides mappings to easily delete, change and add such surroundings in pairs. While it works under Vim 6, much of the functionality requires Vim 7. Examples follow. It is difficult to provide good examples in the variable width font of this site; check the documentation for more. Press cs"' (that's c, s, double quote, single quote) inside "Hello world! " to change it to 'Hello world! ' Now press cs'<q> to change it to <q>Hello world! To go full circle, press cst" to get To remove the delimiters entirely, press ds" . Hello world! Now with the cursor on "Hello", press ysiw] (iw is a text object). [Hello] world! Let's make that braces and add some space (use "}" instead of "{" for no space): cs]{ { Hello } world! Now wrap the entire line in parentheses with yssb or yss) . ({ Hello } world!) Revert to the original text: ds{ds) Emphasize hello: ysiw<em> <em>Hello</em> world!
<p> Hello world! PDV - phpDocumentor for Vim - Provides really comfortable generation of phpDocumentor doc blocks for PHP4 & 5.