« first day (261 days earlier)      last day (1550 days later) » 

00:35
How would I run a bunch of Vim commands that I have in a file from the Linux command line?
@DJMcMayhem
00:46
@ckjbgames Uhm, tbh I'm not entirely sure. I think you can do vim file -c "normal <keys>" but I'm not positive that always works
You could use V, but there are a couple minor features that would be different
vim +command runs command
2
A: Run vim command from commandline

Steve KI'll add another answer for people who are looking for a more general solution. vim +command works to run one Vim command but to run several Vim commands from a shell. Instead, start Vim in Ex-mode and supply commands with a Here document. This is an example from a script I wrote. It searches...

27
A: How should vim answers be scored?

Doorknobvim answers can be run from the command line as such: $ echo 'Input' > file.txt $ vim -u NONE '+normal (enter keystrokes here...)' '+wq' file.txt $ cat file.txt # output Furthermore, vim interprets Ctrl+<letter> by bytes in the lower portion of the ASCII table (with A-Z encoded as 1-26, ex. C...

 
18 hours later…
18:25
user image
4
@DJMcMayhem
I can star it
no pin is ok

« first day (261 days earlier)      last day (1550 days later) »