Markdown's VIM plugin installation

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.