How to enable markdown syntax highlighting in vim?
By default vim does not highlight markdown syntax even if you have syntax on
in your .vimrc
. To enable it just add
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
to your .vimrc
and reload it (or close and reopen vim). Now you should have syntax highlighting for *.md files.
If it does not work ensure you have a recent vim version and the line syntax on
in your .vimrc
.
Source: https://github.com/tpope/vim-markdown
Tell us what you think about this. Is something unclear? Do you have questions or ideas? Leave your comments below.
comments powered by Disqus