AX Semantics Developer Blog
  • Home
  • Categories
  • Tags
  • Archives

Markdown syntax highlighting for vim

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
comments powered by Disqus

  • « Running DevPi as docker container
  • Python 3 support in Codeship »

Published

Nov 6, 2014

Category

Berichtsheft

Tags

  • howto 9
  • markdown 1
  • vim 1
  • AX Semantics Developer Blog - Technical stuff and learnings we had while developing the AX environment
  • Powered by Pelican. Theme: Elegant by Talha Mansoor