On Thu, Feb 06, 2014 at 12:41:58PM -0800, Ivan wrote:
> I'd like to move my mappings into a separate file (maybe even a couple
> different files) and source them from my vimrc. How could I go about
> doing this? Would I have to package them as plugins to do so?

All you need is the 'source' command.

    :help source

First put your mappings into a module, let's say you call it foo.vim (it
can have any name or extention) and let's say you put it on your ~/.vim
path.  Then in your ~/.vimrc put

    source ~/.vim/foo.vim

and that'll do it.  No need to create a plugin.  About the only
advantage to making it into a plugin is you won't need the source line
in ~/.vimrc

-- 
_|_ _  __|_|_ ._ o|  
 |_(_)(_)|_| ||_)||< 
              |      

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to