A file search is its execution. In fact, each line of the file is considered a command. Sourcing is the same as entering each command in order. A source with the command :source (usually shortened to :so ).
So if you use myStuff.vim
:so myStuff.vim
and if myStuff.vim contains these lines
set xx iI just intersted this<C-]> set yy bbbb4dw
It is the same as if you entered these commands in Vim
:set xx iI just intersted this<C-]> :set yy bbbb4dw
The only file whose source is by default is .vimrc ( _vimrc on windows), so there’s a place where you can save all the commands you use to configure Vim every time.
It becomes interesting that since the source file is just a series of commands, and the sourcing command is a command, you can use the source files from your source files. So the plugins that you use every time can be obtained when Vim starts by adding a line to your .vimrc , like this
so myPlugin.vim
Whaledawg Apr 30 '09 at 3:25 2009-04-30 03:25
source share