I have a file with strings:
8 deb http://ftp.de.debian.org/debian/ stable main contrib non-free
9 deb http://ftp.de.debian.org/debian/ stable main contrib non-free
10 deb http://ftp.de.debian.org/debian/ testing main contrib non-free
11 deb http://ftp.de.debian.org/debian/ testing main contrib non-free
12 deb http://ftp.de.debian.org/debian/ sid main contrib non-free
13 deb http://ftp.de.debian.org/debian/ sid main contrib non-free
14 deb http://ftp.de.debian.org/debian/ experimental main contrib non-free
15 deb http://ftp.de.debian.org/debian/ experimental main contrib non-free
I need edit address only on lines 9,11,13,15. I'm just curious, is there any simple hack (like select only this lines and substitute in selected range) in vim to do that? Or should I record a macros and apply it to strings I need.
There is a plugin that allows you to have "multiple cursors". I haven't tried it myself, but you should check out if it solves your problem: