I want to be able to open Vim and automatically make some commands in normal mode (in this case, open two buffers put a mark in one line on one line, fold another line, and go to the bottom of the file). The closest thing I found would be using the -c or + command line switch, however these execute commands in Ex mode.
For example, I would like to be able to write something like this:
vim -some ":e a<CR>:e b<CR>23Gma55GzfG"
To do all the commands.
Why don’t you like
normalcommand? It is not able to execute ex mode commands, but is able to use all other modes:Bang at the end of command is required if you want to be sure that it will not use any mappings.