Skip to content

Instantly share code, notes, and snippets.

@buty4649
Created June 4, 2013 02:55
Show Gist options
  • Save buty4649/5703264 to your computer and use it in GitHub Desktop.
Save buty4649/5703264 to your computer and use it in GitHub Desktop.
Vimwikiでmarkdownを使う設定
" 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