Inserting a character in certain column

Gerald Dachs ubuntu at
Wed Feb 27 09:59:49 UTC 2008

Quoting Michael Ulm <michael.ulm at>:

>>> or use a regexp substitution. In command mode type
>>> :%s/^.\{3}/&XY/
> Are you sure you entered the regexp correctly? I have just verified
> that the expression I gave works with various versions of vi/vim.
> Things to look out for are to use curly braces {} not parentheses (),
> and not to forget any character in the expression.

I didn't test it, but I think the backslash before the closing
curly brace is missing.


This message was sent using IMP, the Internet Messaging Program.

More information about the ubuntu-users mailing list