From 9d5bb3a61468c29dd041d5d5b3b5690b3a037a8a Mon Sep 17 00:00:00 2001 From: gryf Date: Mon, 4 Feb 2019 21:17:18 +0100 Subject: [PATCH] Added a way for defining custom plugins --- .gitignore | 1 + README.rst | 10 ++++++++++ vimrc | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/.gitignore b/.gitignore index 46cee90..f25a202 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ tags .netrwhist autoload/plug.vim vimrc.local +plugins.local diff --git a/README.rst b/README.rst index cadabd4..1587345 100644 --- a/README.rst +++ b/README.rst @@ -7,4 +7,14 @@ of it. It uses `vim-plug`_ plugin manager, so after cloning, just open vim, and it will automatically install all the plugins. +Other than that, there are two additional config files which can be added to +the configuration as a local configuration files just to not mess up with main +config file. Both of them should be placed under ``$HOME/.vim`` directory. + +First one is ``vimrc.local``, which might contain additional/override options +for specific machine. + +The other ``plugins.local`` and similarly there can be additional plugins +defined. + .. _vim-plug: https://github.com/junegunn/vim-plug diff --git a/vimrc b/vimrc index 0824d6e..a0a691d 100644 --- a/vimrc +++ b/vimrc @@ -63,6 +63,12 @@ Plug 'vim-scripts/mako.vim--Torborg', { 'for': 'mako' } Plug 'vimwiki/vimwiki' Plug 'will133/vim-dirdiff' +" Custom plugins: custom plugins per machine {{{ +" if filereadable($MYVIMRC . '.local') +if filereadable(fnamemodify($MYVIMRC, ':h') . '/plugins.local') + exec "source " . fnamemodify($MYVIMRC, ':h') . '/plugins.local' +endif + call plug#end() " }}}