different needs. To accommodate for this, the configuration is split up into
multiple files and a different set of plugins is used:
-- In any case, the plugin set in `plugins.vim` is loaded.
-- If run as non-root user, an additional plugin set in `plugins-noroot.vim` is
- loaded.
-- If run on a no-low-end-box, an additional plugin set in
- `plugins-noroot-nolowendbox.vim` is loaded. A low-end box is indicated by the
- existence of the file `lowendbox`, e.g., on my Raspberry Pi installations.
-- Also, if `plugins-local.vim` exists, this plugin set is loaded, too. For
- instance, on one machine I have gnupg and corresponding vim plugins
- configured.
+- In any case, the plugin set in `plugins-mini.vim` is loaded.
+- Furthermore, `plugins-midi.vim`, `plugins-full.vim` and `plugins-local.vim`
+ are loaded if present. They are provided as `plugins-xxx.vim.example` and you
+ can create a symlink `plugins-xxx.vim` to have them loaded. (In case of
+ `plugins-local.vim` you will probably provide a machine-dedicated version
+ rather than symlinking the example file.)
Similar to `plugins-local.vim`, also the following files are sourced if
existent:
syntax on
-if filereadable($HOME . '/.vim/lowendbox')
- let g:lowendbox = 1
-else
- let g:lowendbox = 0
-endif
-
runtime macros.vim
runtime keymaps.vim
runtime plugsetup.vim
endif
Plug 'ryanoasis/vim-devicons', Cond(g:enable_plugin_devicons)
+
Plug 'joom/latex-unicoder.vim'
Plug 'chrisbra/unicode.vim'
Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'}
endif
-function PluginsNorootNolowendboxConfig()
+function PluginsConfigFull()
let g:neomake_c_enabled_makers = ['clangtidy', 'clangcheck']
let g:neomake_cpp_enabled_makers = ['clangtidy', 'clangcheck']
let g:clang_compilation_database = '.'
-Plug 'jamessan/vim-gnupg'
-
"Plug 'kien/tabman.vim'
"Plug 'chikamichi/mediawiki.vim'
Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'}
+Plug 'jamessan/vim-gnupg'
+
" Conditional loading does not work, see github issue #823
Plug 'ludovicchabant/vim-gutentags'
"Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']}
Plug 'ggandor/leap.nvim'
-function PluginsNorootConfig()
+function PluginsConfigMidi()
let g:localvimrc_persistent = 1
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
Plug 'nfnty/vim-nftables'
-function PluginsConfig()
+function PluginsConfigMini()
" Some preferences for indent detection
let g:detectindent_min_indent = 2
call plug#begin('~/.vim/plugged')
-source ~/.vim/plugins.vim
+source ~/.vim/plugins-mini.vim
" Load various conditinoal plugin sets
-if filereadable($HOME . '/.vim/plugins-local.vim')
- source ~/.vim/plugins-local.vim
+
+if filereadable($HOME . '/.vim/plugins-midi.vim')
+ source ~/.vim/plugins-midi.vim
endif
-if $USER != "root"
- source ~/.vim/plugins-noroot.vim
+if filereadable($HOME . '/.vim/plugins-full.vim')
+ source ~/.vim/plugins-full.vim
+endif
- if g:lowendbox == 0
- source ~/.vim/plugins-noroot-nolowendbox.vim
- endif
+if filereadable($HOME . '/.vim/plugins-local.vim')
+ source ~/.vim/plugins-local.vim
endif
call plug#end()
-" Call the config functions of the plugins
-call PluginsConfig()
-if filereadable($HOME . '/.vim/plugins-local.vim')
- call PluginsLocalConfig()
+" Call config functions of plugin sets
+
+call PluginsConfigMini()
+
+if filereadable($HOME . '/.vim/plugins-midi.vim')
+ call PluginsConfigMidi()
endif
-if $USER != "root"
- call PluginsNorootConfig()
- if g:lowendbox == 0
- call PluginsNorootNolowendboxConfig()
- endif
+
+if filereadable($HOME . '/.vim/plugins-full.vim')
+ call PluginsConfigFull()
+endif
+
+if filereadable($HOME . '/.vim/plugins-local.vim')
+ call PluginsConfigLocal()
endif