sponsor Vim development Vim logo Vim Book Ad

TEXT - fill char : script for on-the-fly indenting of columns according to previous or next line

 script karma  Rating 7/3, Downloaded by 954  Comments, bugs, improvements  Vim wiki

created by
Petr Mach
 
script type
utility
 
description
Script for on-the-fly indenting of columns according
to the previous or next line (it allows for instance to easily align
'=' sign in a sequence of C initializations, and much more).

EXAMPLE:

line 1: background-color: _#eeeeee
line 2: color:|

Char | is cursor, char _ is space.

After call :FillUpSpace (you can map to TAB) is
situation this:

line 1: background-color:_#eeeeee
line 2: color:___________|

Cursor is under #. It's all.

You can use :FillUpPrevious for fill any char (by char
previous cursor)

EXAMPLE:

line1: Chapter1 ...................... 7
line2: Chapter2 .|

After use :FillUpPrevious is situation this:

line1: Chapter1 ...................... 7
line2: Chapter2 ......................|
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
TEXT_charFill.vim 1.0 2003-02-17 6.0 Petr Mach Initial upload
ip used for rating: 3.147.73.35

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github