On 10.6.2011 18.39, flapeccino@xxxxxxxxx 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@xxxxxxxxxxxx * http://www.greenspot.fi _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos