No idea about vim. Sorry. Would be nice to know though! Isn't emacs
meant to be the infinitely programmable editor? Wd be nice to know how to
program it in any editor.
If you wanted to instead replace
line 1
line 2
line 3
with
/*
line 1
line 2
line 3
*/
Commenting out C - traditional painful problem as the above will break if
lines 1-3 contain any /* ... */ type comments themselves. Prefixing each
line with // is an easy solution but // hasn't always been flavour of the
month and isn't accepted by all C compilers.
Does your installation have sed? There are several windows versions out
there, the first I could find is at http://unxutils.sourceforge.net/
The sed to do the subsititution is:
max$ echo gaga > temp
max$ sed 's:^://:g' temp
//gaga
Should work with the windows version. Don't have a win box to play with
at the mo - mine broke yet again.
Regards, Max
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]