Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #266 - Command line switch to source a script

Created: June 26, 2002 23:31 Complexity: basic Author: Max Ischenko Version: 6.0 Karma: 4/4 Imported from: Tip#266

The -S switch could be used to simplify common idiom: start Vim and source a script file:

gvim -c ":so foobar.vim" got translated into gvim -S foobar.vim


Yes, this tip is trivial but I still see the -c ":so x" way too often. Time to update your mind!

Comments

Advertisement