role: Can make markdown syntax highlighting.
1. Install. Managed using the pathogen plugin.
CD ~/.vim/bundle
git clone https://github.com/plasticboy/vim-markdown.git
2. Configuration, after the installation is completed, automatically by pathogen, but markdown write Jekyll blog, you need to configure the YAML syntax. Add the following configuration in ~/.VIMRC:
Let g:vim_markdown_frontmatter=1
3.markdown Code completion tool Snipmate
CD ~/.vim/bundle
git clone https://github.com/tomtom/tlib_vim.git
git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
git clone https://github.com/garbas/vim-snipmate.git
git clone https://github.com/honza/vim-snippets.git
where Tlib_vim and Vim-addon-mw-utils are 2 function libraries, vim-snippets is used to edit the code snippet, but you can use it if you customize the snipmate behavior.
4. Conflict: Vim-markdown and vim-snipmate cannot be used automatically, as it appears (2016.6.13) because the former sets filetype to MKD and the latter requires filetype for markdown to take effect.
Workaround:
CD ~/.vim/bundle/vim-snippets
CP markdown.snippets Mkd.snippets
5. See the official website for more syntax. Https://github.com/plasticboy/vim-markdown
Markdown Vim plug-in installation