1

I want to separate my Vim Plugins to a separated file since I using more plugins in my .vimrc file. it this possible?

closed as unclear what you're asking by Rich, Tumbler41, Martin Tournoij Jun 13 '17 at 13:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    You might want to have a look at the plugins Pathogen and Vundle. Both allow you to easily manage plugins. Pathogen gives you a bit more control over what is going on while Vundle makes things a bit easier. – Octaviour Jun 12 '17 at 11:28
0

source command can do it.

You can separate files, and source them in the main file ( vimrc )

0

I'm not sure to correctly understand your question.

Usually when the .vimrc contains more and more functions, mappings, commands, abbreviations and so on, we split it into several files.

When the definitions should apply to any type of buffer (/file), they go in a vim script stored under ~/.vim/plugin/ (I simplify, read :h 'rtp' for more information).

When the definitions are specifics to a type of buffer (/file), they go in filetype plugins, stored under ~/.vim/ftplugin/{filetype}/.

Functions are best stored in autoload plugins. Syntax definitions in ~/.vim/syntax/` and so on.

I'm quite sure I've already explained that somewhere. May be it was on SO, I don't remember.

Not the answer you're looking for? Browse other questions tagged or ask your own question.