mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 12:00:30 +01:00
Added a way for defining custom plugins
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ tags
|
|||||||
.netrwhist
|
.netrwhist
|
||||||
autoload/plug.vim
|
autoload/plug.vim
|
||||||
vimrc.local
|
vimrc.local
|
||||||
|
plugins.local
|
||||||
|
|||||||
10
README.rst
10
README.rst
@@ -7,4 +7,14 @@ of it.
|
|||||||
It uses `vim-plug`_ plugin manager, so after cloning, just open vim, and it
|
It uses `vim-plug`_ plugin manager, so after cloning, just open vim, and it
|
||||||
will automatically install all the plugins.
|
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
|
.. _vim-plug: https://github.com/junegunn/vim-plug
|
||||||
|
|||||||
6
vimrc
6
vimrc
@@ -63,6 +63,12 @@ Plug 'vim-scripts/mako.vim--Torborg', { 'for': 'mako' }
|
|||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
Plug 'will133/vim-dirdiff'
|
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()
|
call plug#end()
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user