On 10.6.2011 18.39, flapeccino@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