In Vim I am trying to paste a few lines:
PROC SQL;
CONNECT TO DB2(DSN=test);
CREATE TABLE test AS SELECT *
FROM CONNECTION TO DB2 (
above every line starting with "select" and
);
quit;
below every line that ends with "FOR FETCH ONLY"
Is there a way to use the paste buffer? Like
%s/^select/(a!)\rselect/
so that it once I type the command it opens a paste buffer like the a! command, and uses that as the substitute?
Thanks, Dan