* 2010-08-04 08:22 (-0700), Jim Green wrote:

> sectionA
> service=1
> network=1.1.1.1

> Could anyone point me how to do this in vim? I thought of using shell
> scripts to do it but might be an overkill,

You got Vim solutions but here's an "overkill" Bash version:

#!/bin/bash
chars=( {A..Z} )
i=0
while ((i <= 25)); do
    printf 'section%s\nservice=%s\nnetwork=1.1.1.%s\n\n' \
        ${chars[i++]} $i $i
done

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to