> 1. change these to number order starting at 1 (1, 2, 3, 4 etc)
> 2. change these to alpha list (a, b, c, etc)
> [This one has me stumped although I'm sure I've seen something
> along these lines before. ? something to do with sub-replace-special
> and submatch?]
>
>
> 1987:Bogotá
> 5243:Fabergé
> 9772:Mallarmé
> 12044:Paraná
> 12499:Poincaré
> 16956:abbé
> 19923:appliqué
> 20932:attaché
> 23704:blasé
> 26223:café
> 26511:canapé
> 29314:cliché
> 31431:consommé
> 38981:décolleté
> 42995:fiancé
> 43623:flambé
> 44996:frappé
> 48317:habitué
> 58328:macramé
> 58898:manqué
> 62514:naiveté
> 65243:outré
> 66710:passé
> 71609:protégé
> 73675:recherché
> 76387:risqué
> 76847:roué
> 77811:sauté
> 82455:soufflé
> 89055:touché
> 96268:émigré
> 96274:études
>
> any hints?,

The following shows how I'd do it...

 1. Line up the colons:
     (use V to visually select the region) \t:
 2. Manually change  (the \t: will have inserted the spaces)
      1987 : Bogotá
    to
         1 : Bogotá
 3. Visually select the numbers in the column (using ctrl-v and motion),
    then press
       :I

To do this I would have used:

Align and AlignMaps: http://vim.sourceforge.net/scripts/script.php?script_id=294 VisIncr : http://vim.sourceforge.net/scripts/script.php?script_id=670

To do the alphabetic "numbering", VisIncr supports the ":IA" command (use it instead of the ":I" above)

Regards,
Chip Campbell

Reply via email to