From 7f01b18cafc6ed342fdd369f262c935a2c874c8b Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 14 Nov 2018 12:28:48 +0100 Subject: [PATCH] plugins: Add mediawiki to plugins-local --- init.vim | 4 +++- neosnippets/mediawiki.snip | 15 +++++++++++++++ plugins-local.vim.example | 2 ++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 neosnippets/mediawiki.snip diff --git a/init.vim b/init.vim index 6d8e56e..0626ee4 100644 --- a/init.vim +++ b/init.vim @@ -79,9 +79,11 @@ let g:vim_markdown_frontmatter=1 let g:vim_markdown_math=1 let g:guesslang_langs=[ 'en_US', 'de_AT'] -au FileType text,markdown,mail,tex,gitcommit setlocal spell +au FileType text,markdown,mail,tex,gitcommit,mediawiki setlocal spell au BufReadPost * :DetectIndent +au FileType mediawiki setlocal wrap linebreak tw=0 + au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.' au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.' diff --git a/neosnippets/mediawiki.snip b/neosnippets/mediawiki.snip new file mode 100644 index 0000000..8798f43 --- /dev/null +++ b/neosnippets/mediawiki.snip @@ -0,0 +1,15 @@ +snippet code + ${1} + +snippet smallpre + +
+    ${1}
+    
+
+ +snippet refs + ---- + + + diff --git a/plugins-local.vim.example b/plugins-local.vim.example index cbc2124..c0be0ea 100644 --- a/plugins-local.vim.example +++ b/plugins-local.vim.example @@ -4,3 +4,5 @@ Plug 'jamessan/vim-gnupg' Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']} "Plug 'kien/tabman.vim' + +"Plug 'chikamichi/mediawiki.vim' -- 2.39.5