Marc André Tanner <m...@brain-dump.org> writes: > On Sun, Mar 13, 2016 at 11:07:49AM +0000, Raphaël Proust wrote: >> `ggvG:sam y/\n/i/FOO` only inserts "FOO" at the start of the first >> line. It should do it on every line. >> Same when using `x/^.*$/` instead of `y/\n/` > > These should now also work. By the way you do not have to prefix your > sam command with `ggvG` because in normal mode it will by default be > applied to the whole file.
Or you could use `:,` to mean the whole file (i. e. `:,y/\n/i/FOO`). I'd rather have the sam commands working on my current selection/position and use one extra key to mean the whole file.