X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=plugins-noroot.vim;h=6951a0725155e4333748d4e1839ea85f848a1b20;hb=f1c211d10365e5f9f6cd335617484f52abf860c9;hp=0553a16fb9ef4b42f9366b325d641e995a558e71;hpb=4b43577ea69c796594405180573fa4efc0778677;p=vimconf.git diff --git a/plugins-noroot.vim b/plugins-noroot.vim index 0553a16..6951a07 100644 --- a/plugins-noroot.vim +++ b/plugins-noroot.vim @@ -1,7 +1,7 @@ Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} -" Disable conditional loading to have gutentags also for tex files -Plug 'ludovicchabant/vim-gutentags' ", {'for': ['c', 'cpp', 'objc', 'tex']} +" Conditional loading does not work, see github issue #823 +Plug 'ludovicchabant/vim-gutentags' "Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']} Plug 'editorconfig/editorconfig-vim' @@ -27,6 +27,31 @@ Plug 'mattn/calendar-vim' Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'} -if g:lowendbox == 0 - source ~/.vim/plugins-noroot-nolowendbox.vim -endif + +function PluginsNorootConfig() + let g:localvimrc_persistent = 1 + + let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] + + "augroup pencil + "au! + "au FileType markdown,mkd call pencil#init() + "au FileType text call pencil#init() + "au FileType mail call pencil#init() + "au FileType tex call pencil#init() + "augroup END + + let g:vim_markdown_frontmatter=1 + let g:vim_markdown_math=1 + + au FileType markdown call RagtagInit() + + " Generally disable gutentags, but enable for some filetypes + let g:gutentags_enabled = 0 + au FileType c,cpp,objc,tex let g:gutentags_enabled = 1 + " Make manually created tags files also root markers + let g:gutentags_project_root = ['tags'] + let g:gutentags_cache_dir = expand('~/.cache/vim/ctags/') + " Do not automatically generate on browsing + let g:gutentags_generate_on_missing = 0 +endfunction