From cdf1fddcd88dace1209bff22fee2337ee9ff9a01 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 29 Dec 2018 12:13:55 +0100 Subject: [PATCH] ragtag: Enable ragtag for markdown, disable Ragtag initializes only for certain file types so disable lazy load of ragtag by vim-plug. Since markdown is not in this list explicitly call RagtagInit(). Also disable the old shortcut and use ragtag's / instead. --- init.vim | 2 ++ keymaps.vim | 1 - plugins.vim | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 0626ee4..2d63a7d 100644 --- a/init.vim +++ b/init.vim @@ -78,6 +78,8 @@ let g:vim_markdown_folding_disabled=1 let g:vim_markdown_frontmatter=1 let g:vim_markdown_math=1 +au FileType markdown call RagtagInit() + let g:guesslang_langs=[ 'en_US', 'de_AT'] au FileType text,markdown,mail,tex,gitcommit,mediawiki setlocal spell au BufReadPost * :DetectIndent diff --git a/keymaps.vim b/keymaps.vim index 4b27355..7f04452 100644 --- a/keymaps.vim +++ b/keymaps.vim @@ -21,7 +21,6 @@ au Filetype c,cpp,objc map :vsplit:FSRight au Filetype c,cpp,objc map :FSHere au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards() -au Filetype html,xml imap / au Filetype markdown map :call RunPandoc() " Start interactive EasyAlign in visual mode (e.g. vipga) diff --git a/plugins.vim b/plugins.vim index 988dcd6..ead7f51 100644 --- a/plugins.vim +++ b/plugins.vim @@ -28,7 +28,7 @@ Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']} Plug 'ap/vim-css-color', {'for': ['scss', 'css']} -Plug 'tpope/vim-ragtag', {'for': ['html', 'xml']} +Plug 'tpope/vim-ragtag' Plug 'lervag/vimtex', {'for': 'tex'} -- 2.39.5