You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
496 B

let g:markdown_fenced_languages = ['coffee', 'css', 'erb=eruby', 'javascript', 'js=javascript', 'json=javascript', 'ruby', 'sass', 'xml', 'html']
function! Markdown()
exe "!".$HOME."/.vim/mkd -s '%'"
endfunction
command! Markdown call Markdown()
function! MkdUpdate()
exe "!".$HOME."/.vim/mkd '%'"
endfunction
command! MkdUpdate call MkdUpdate()
nnoremap <F4> :MkdUpdate<CR>
" Highlight trailing whitespaces
highlight mkdTrailingSpace ctermbg=22 guibg=#005f00
match mkdTrailingSpace " \+$"