[CentOS] Vim scripting - cursor motion
Jussi Hirvi
listmember at greenspot.fi
Fri Jun 10 18:03:50 UTC 2011
On 10.6.2011 18.39, flapeccino at gmail.com wrote:
> There is a good article on vimscript here:
> http://www.ibm.com/developerworks/linux/library/l-vimscript-1/index.html)
Sorry there was a typo, the correct URL is:
http://www.ibm.com/developerworks/linux/library/l-vim-script-1/index.html
Thanks, I found that already, and it is a good one. But it didn't help
me solve my problem about cursor motions.
Maybe my question is wrong - maybe I should just use line ranges in
commands, for example for the first line:
:1,1s/foo/bar/g
and for the last line:
:$,$s/foo/bar/g
- Jussi
--
Jussi Hirvi * Green Spot
Suvilahdenkatu 1 B 78 * 00500 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi at greenspot.fi * http://www.greenspot.fi
More information about the CentOS
mailing list