Sublime-text markdown with Vim mode and auto preview

说明

最近看到markdown相关的东西,被其书写方式吸引,其实以前就在找这种类似的工具,但是也没找到,由于习惯了Vim,可Vim不支持markdown预览,这点可能不是很好,于是找到Sublime-text作为底板,用Vim模式编辑。

参考文章

  1. 使用Sublime Text作为Markdown编辑器
  2. Sublime 下配置vim模式
  3. Sublime-text Package Control Installation
  4. Sublime Text download
  5. Sublime写MarkDown实时预览
  6. 用 Markdown 写作用什么文本编辑器?

安装说明

按照参考文章里的说明,基本上是能够搭建起整个操作环境的。
不过发现,在博客园里面用markdown的显示效果并没有在github上的显示效果好,所以可能后续会考虑将blog转移到github上进行维护。

Setting User

{
    "font_size": 16,
    "ignored_packages":
    [
        //"Vintage"
    ],
    "line_numbers": true,      //是否显示行号
}

MarkdownPreview settings

{
    "browser": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
    "enabled_parsers": ["github"],
    /*
        Enable or not mathjax support.
    */
    "enable_mathjax": true,

    /*
        Enable or not highlight.js support for syntax highlighting.
    */
    "enable_highlight": true,
}

keymap

[
    {"keys": ["alt+m"], "command": "markdown_preview", "args": { "target": "browser"} },
]
原文地址:https://www.cnblogs.com/zengjfgit/p/5444465.html