I'm looking to use ex mode of vim for a script I'm trying to write, but I can't seem to figure out the syntax that will allow me to write multiple commands.
My code looks something like this:
ex -c 'normal! 2gg19|^V49gg59|y' geom.inc
So this just enters into ex mode for the file geom.inc, highlights a block of text, and yanks that text block. All that I want to add is that it will close the file once it has done this, but I can't seem to figure out how to include the additional command to close the file. I know in general "|" is used to string together commands, but no combination that I have tried has worked. It typically causes it to think one of the commands is another file.