From TextMate to MacVim: Markdown File Editing

Sunng号召大伙用markdown书写文档,这里积极响应一下~ TextMate out of box bundle了Markdown.tmbundle,所以默认就支持markdown file syntax,vim里面貌似默认没有那么幸运,也不是很确定,不过anyway,vim里面的default就是让你改的… [Markdown Syntax Support] 具体markdown的syntax可以参见这里,这里不赘述。 市面上找到了不少关于vim markdown syntax的plugin(这个算不算是vim user幸福的烦恼?): 1. http://www.vim.org/scripts/script.php?script_id=1242 (http://github.com/plasticboy/vim-markdown) 2. http://github.com/tpope/vim-markdown 3. http://github.com/hallison/vim-markdown 4. http://github.com/mikewest/vim-markdown make your choice then install it,你选择,你喜欢. [Markdown Preview Support] TextMate有个很nice的markdown preview功能,截图如下: 这个preview用了TextMate自己的stylesheet来render generate出来的html,非常方便实用。 所以切换到Vim后这个feature显然会非常missing,还好 vim-markdown-preview 这个插件正好做了类似的工作,只不过它默认模拟github的style来render html(其实正合我意…). 不知道是style outdated了还是怎样,反正插件模拟github的style模拟的不是非常像,我fork了一份,修改为采用github自己的css,readme还没有改,因为计划给其发pull request,当然如果遭拒我以后还得改下readme,顺便多edit几个markdown测试一下也好,dogfood, dogfood… 最后也截个图吧,下面是 vim-task 的README.mkd在safari里面preview:

Buy me a coffee
  • Post author: Samson Wu
  • Post link: 2265.html
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.
0%