News

New paper!

Tuesday, June 19, 2018

Execute vim command from command line

vim -c "command" input_file_name

(example)
vim -c ":%s/a/b/g" -c ":%s/u/n/g" -c ":wq" input.txt
*This will replace all a with b, and all u with n in input.txt file, and save and quit.