I have read the other posts, e.g., vim: Executing a list of editor commands and others. The answer isn’t clear to me for my case. I have some editor commands that I generated from an SQL query. It uses :s/foo/bar to change country codes (from FIPS to a non-standard code set). Here’s a sample of the file:
:s/CB/CAMBO
:s/CQ/NMARI
:s/KV/KOSOV
:s/PP/PAPUA
...
I have saved that in a file called fipsToNonStd.vim (unsure about the correct extension). I want to run those commands one after another. What’s the easiest way to do so?
Thanks a bunch! SO Rocks!
I think you’re looking for the
:sourcecommand.There is online documentation that you can see in vim by running
:help :source.