vi puzzles
M.W. Chang
mwchang
Mon May 17 12:00:41 PDT 2004
I believe the new version of vim support column editing mode. I have
accidentally turned it on, but I could never reproduce the keystrokes I
accidentally touched. I guess it was not a popular feature, but I used
column editing frequently with my Semware QEdit to ident Foxpro codes
frequently. QEdit even support sorting of lines inside the marked column.
> I am not really good in vi(m) for doing fancy editing. You can use any
> bash tool you want in vim like so:
> :1,$ ! cut -d" " -f1,2
> To insert columns, something like sed might be nice, eg.
> :1,$ ! sed "s/\([a-z] \)\{3,\}/&NewColumn /"
--
.~. http://toylet.homeip.net
/ v \ Linux 2.4.22-xfs
/( _ )\ 8:56pm up 1 day 35 min
^ ^ load average: 0.99 0.98 0.99
More information about the Linux-users
mailing list