]> git.sthu.org Git - vimconf.git/commitdiff
plugins: Add mediawiki to plugins-local
authorStefan Huber <shuber@sthu.org>
Wed, 14 Nov 2018 11:28:48 +0000 (12:28 +0100)
committerStefan Huber <stefan.huber@br-automation.com>
Wed, 14 Nov 2018 14:30:36 +0000 (15:30 +0100)
init.vim
neosnippets/mediawiki.snip [new file with mode: 0644]
plugins-local.vim.example

index 6d8e56ed07ea93d53e229f6a146b07733b707da0..0626ee4125c336b24f47f14d971836aed37e9cc2 100644 (file)
--- 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 (file)
index 0000000..8798f43
--- /dev/null
@@ -0,0 +1,15 @@
+snippet code
+    <code>${1}</code>
+
+snippet smallpre
+    <small>
+    <pre>
+    ${1}
+    </pre>
+    </small>
+
+snippet refs
+    ----
+    <small>
+    <references />
+    </small>
index cbc21249e0c3c7d2fa352a6834f8b57e0cfb320c..c0be0eaf6dda50b9efc1993aa418ce241f5f2fae 100644 (file)
@@ -4,3 +4,5 @@ Plug 'jamessan/vim-gnupg'
 Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']}
 
 "Plug 'kien/tabman.vim'
+
+"Plug 'chikamichi/mediawiki.vim'