1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 19:40:29 +01:00

Added a way for defining custom plugins

This commit is contained in:
2019-02-04 21:17:18 +01:00
parent ddb45d69fa
commit 9d5bb3a614
3 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ tags
.netrwhist
autoload/plug.vim
vimrc.local
plugins.local

View File

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

6
vimrc
View File

@@ -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()
" }}}