Is there a way in vim to read a file, like with :r, and then store it in some register? and is there a way to do the same, but only with the lines in the file that matches some pattern?
Is there a way in vim to read a file, like with :r ,
Share
Using external grep, you could do:
to place only the lines matching
patternfrom filefilenamein registerx.