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

Drop local vimrc files iin favor of thinca/vim-localrc plugin.

This commit is contained in:
2024-07-13 17:39:06 +02:00
parent 8497d7595a
commit 0da4596005
2 changed files with 1 additions and 22 deletions

View File

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

12
vimrc
View File

@@ -64,12 +64,7 @@ Plug 'vim-scripts/mako.vim', { 'for': 'mako' }
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
Plug 'thinca/vim-localrc'
call plug#end()
" }}}
@@ -779,10 +774,5 @@ endif
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: