mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Drop local vimrc files iin favor of thinca/vim-localrc plugin.
This commit is contained in:
11
README.rst
11
README.rst
@@ -20,15 +20,4 @@ or in ``$XDG_COFIG_HOME`` directory, which usually is set to ``$HOME/.config``:
|
|||||||
|
|
||||||
git clone https://github.com/gryf/.vim ~/.config/vim
|
git clone https://github.com/gryf/.vim ~/.config/vim
|
||||||
|
|
||||||
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`` or
|
|
||||||
``$XDG_COFIG_HOME/vim`` depending on your installation.
|
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
12
vimrc
12
vimrc
@@ -64,12 +64,7 @@ Plug 'vim-scripts/mako.vim', { 'for': 'mako' }
|
|||||||
Plug 'vim-scripts/mako.vim--Torborg', { 'for': 'mako' }
|
Plug 'vim-scripts/mako.vim--Torborg', { 'for': 'mako' }
|
||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
Plug 'will133/vim-dirdiff'
|
Plug 'will133/vim-dirdiff'
|
||||||
|
Plug 'thinca/vim-localrc'
|
||||||
" 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()
|
||||||
" }}}
|
" }}}
|
||||||
@@ -779,10 +774,5 @@ endif
|
|||||||
|
|
||||||
silent! exec 'colorscheme ' . s:_colorscheme
|
silent! exec 'colorscheme ' . s:_colorscheme
|
||||||
|
|
||||||
"}}}
|
|
||||||
" Custom: custom config per machine {{{
|
|
||||||
if filereadable($MYVIMRC . '.local')
|
|
||||||
exec "source " . $MYVIMRC . '.local'
|
|
||||||
endif
|
|
||||||
"}}}
|
"}}}
|
||||||
" vim:ts=4:sw=4:wrap:fdm=marker:
|
" vim:ts=4:sw=4:wrap:fdm=marker:
|
||||||
|
|||||||
Reference in New Issue
Block a user