MarkDown的vim插件安装
2016-06-19 11:18
405 查看
作用:可以使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
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
相关文章推荐
- 阿里云服务器web应用安全-异常登录
- iOS-UIStackView浅析
- ContentProvider的理解与使用
- linux下man手册简介
- C:数组和指针
- 高级I/O---多路复用---epoll
- Ubuntu安装jdk
- java 金字塔
- 实现应用专属通知铃声
- 九度OJ 1012 畅通工程 (深度遍历求强连通分量个数)
- LeetCode 360. Sort Transformed Array
- 【Debug】双击cpp文件无法直接打开,提示“向程序发送命令时出现问题”
- code1174 靶形数独
- Linux 驱动面试题总结
- 数组中只出现一次的数字41
- 【.net 深呼吸】写入日志文件
- hdu 4504(动态规划)
- git - 简易指南
- 开源年中国(五)清除缓存
- 善于利用win7系统自带sysprep工具重置系统的方法 (去SID)