:source command

34 views
Skip to first unread message

Adolfo Olivera

unread,
Oct 30, 2012, 11:42:15 AM10/30/12
to vim...@googlegroups.com
Hi,
    Would somebody explain me essentially what is the :source command used for and how.

Marcin Szamotulski

unread,
Oct 30, 2012, 12:26:13 PM10/30/12
to vim...@googlegroups.com
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

Hi,

There is :source command and :runtime command, which are similar.
:source {file}
executes commands written in a {file} The {file} is usually a VimL
script (plugin, filetype plugin, color scheme, indent file, etc). It
may contain any ex-commands, and VimL declarations.
:runtime {file}
does the same but the {file} is search in 'runtimepath'.

Best regards,
Marcin

Charlie Kester

unread,
Oct 31, 2012, 10:14:37 PM10/31/12
to vim...@googlegroups.com
Probably inspired by the source or dot command found in most Unix shells.

Reply all
Reply to author
Forward
0 new messages