zoukankan      html  css  js  c++  java
  • MarkDown的vim插件安装

    作用:可以使markdown语法高亮。
    1.安装。使用pathogen插件管理。
        cd ~/.vim/bundle
        git clone https://github.com/plasticboy/vim-markdown.git
    2.配置,安装完成后,由pathogen自动生效,但是markdown写Jekyll博客,需要对yaml语法做个配置。在~/.vimrc中添加以下配置:
        let g:vim_markdown_frontmatter=1
    3.markdown代码补全工具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
    其中tlib_vim和vim-addon-mw-utils是2个函数库,vim-snippets是编辑代码片段用的,可以不装,但是你要是自定义snipmate的行为就用的找了。
    4.冲突:vim-markdown和vim-snipmate无法自动配合使用,目前(2016.6.13)看来是因为前者将filetype设置为mkd,而后者需要filetype为markdown才能够生效。
        解决方法:
        cd ~/.vim/bundle/vim-snippets
        cp markdown.snippets mkd.snippets
    5.更多语法参见官网。https://github.com/plasticboy/vim-markdown

  • 相关阅读:
    https://www.cnblogs.com/marost/p/4668664.html
    UEFI 坑 Ubuntu
    Spring《六》管理Bean
    Spring《五》集合的注入方式
    Spring《四-一》解决自动装配的问题
    spring《四》自动装配
    Spring《三》ref 引用其他bean
    Spring《二》 Bean的生命周期
    Spring《一》
    Fragment间相互调用并传值
  • 原文地址:https://www.cnblogs.com/litifeng/p/5597683.html
Copyright © 2011-2022 走看看