Antonio Recio wrote: > I would like to execute a bash script from the terminal with two > vim commands.
Vim can be driven from a Bash script. Here's an example. Save this as "noblanks.vim": " remove blank lines :g/^$/d " write, quit :wq Usage: $ vim -es < noblanks.vim file_with_blanks.txt See also: * http://superuser.com/questions/22455/vim-what-is-the-ex-mode-for-batch-processing-for/22500#2250 * :help -e * :help -s-ex * :help -n
signature.asc
Description: OpenPGP digital signature
