Created
June 4, 2013 02:55
-
-
Save buty4649/5703264 to your computer and use it in GitHub Desktop.
Vimwikiでmarkdownを使う設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vimwikiをmarkdownにする | |
let g:vimwiki_list = [{'syntax': 'markdown', 'ext': '.md'}] | |
" アンダーライン見出しのシンタクスを追加 | |
" 見出し1 | |
" ======= | |
" | |
" 見出し2 | |
" ------- | |
let s:bundle = neobundle#get("vimwiki") | |
function! s:bundle.hooks.on_source(bundle) | |
autocmd vimwiki BufEnter *.md syntax match VimwikiHeader1 ".\+\n=\+$" contains=VimwikiTodo,VimwikiHeaderChar,VimwikiNoExistsLink,VimwikiCode,VimwikiLink,VimwikiWeblink1,VimwikiWikiLink1,@Spell | |
autocmd vimwiki BufEnter *.md syntax match VimwikiHeader2 ".\+\n-\+$" contains=VimwikiTodo,VimwikiHeaderChar,VimwikiNoExistsLink,VimwikiCode,VimwikiLink,VimwikiWeblink1,VimwikiWikiLink1,@Spell | |
endfunction | |
unlet s:bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment