vi puzzles

Brad De Vries devriesbj
Mon May 17 12:00:39 PDT 2004


One more possible solution is to use the vi command
"|" (pipe symbol).  It positions the cursor to the
specified column.

For example, while in command-mode, type "30|"
(without the quotes) and the cursor will immediately
move to column 30 (or the last column if less than
30).

>From there, you can do the normal vi commands to
manipulate the data as desired.

Good luck,
Brad.
--- "M.W. Chang" <mwchang at i-cable.com> wrote:
> 
> How could I do column insert, column delete and
> column move in vi 
> editor? It's not easy to find a reference in
> google.com
> 
> -- 
>   .~.    http://toylet.homeip.net
>  / v \   Linux 2.4.22-xfs
> /( _ )\  8:04am up 3 days 11:29
>   ^ ^    load average: 1.00 1.00 0.97


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com



More information about the Linux-users mailing list