Vim logo vim online Vim Book Ad

basic Tip #266: use -S command line switch

 tip karma   Rating 4/4, Viewed by 623 

created:   June 26, 2002 23:31      complexity:   basic
author:   Max Ischenko      as of Vim:   6.0


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!

 rate this tip  Life Changing Helpful Unfulfilling 

<<Fast help in full window | selectively displaying abbreviations >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo