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 1086  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: 216.73.216.169

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github