Wikia

Vim Tips Wiki

Command line switch to source a script

Talk0
1,612pages on
this wiki
Revision as of 00:59, April 25, 2008 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 266 Printable Monobook Previous Next

created June 26, 2002 · complexity basic · author Max Ischenko · version 6.0


Use the -S option to start Vim and source a script file:

gvim -S foobar.vim

This tip is trivial, but I see the following too often. Time to update your mind!

gvim -c ":so foobar.vim"

CommentsEdit

Around Wikia's network

Random Wiki