V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
morefreeze
V2EX  ›  macOS

请问大家在 Mac 下能否用 vi 边看边写 markdown?

  •  
  •   morefreeze · Aug 5, 2015 · 3657 views
    This topic created in 3926 days ago, the information mentioned may be changed or developed.

    因为用习惯用vi,虽然有语法高亮支持,但没法看到实时的效果,我只能粘到MacDown或别的软件去看,而且vi里一般设置了行号,粘起来比较麻烦,因此问有没有那种支持vi操作,同时能分屏边写边看效果的呢?平台主要用来写文档,安装说明,博客。

    我之前用过sublime text,配过一些插件,首先ST自己可以用vi mode,然后有个插件好像是可以按个键在网页里打开效果的,但还是有点麻烦。

    Supplement 1  ·  Aug 6, 2015
    回复下质疑用vi写md的情况,比如写github.io的博客,写README.md
    9 replies    2015-08-05 20:58:07 +08:00
    sinxccc
        1
    sinxccc  
       Aug 5, 2015
    实时预览的话可以用 Marked。

    http://marked2app.com
    chmlai
        3
    chmlai  
       Aug 5, 2015
    chrome 有插件支持.
    Owenjia
        4
    Owenjia  
       Aug 5, 2015   ❤️ 1
    SoloCompany
        5
    SoloCompany  
       Aug 5, 2015 via iPhone
    marked在降价时入的,应该就是为满足楼主这类需求的
    morefreeze
        6
    morefreeze  
    OP
       Aug 5, 2015
    @Owenjia 简直酷!
    learnshare
        7
    learnshare  
       Aug 5, 2015
    Markdown 是用来写的,没必要边预览边写吧

    边看边写就别用 Vim 了,不是有更多好工具么
    https://github.com/LearnShare/Learning-Markdown#十一编辑器
    Seishi
        8
    Seishi  
       Aug 5, 2015
    fatestigma
        9
    fatestigma  
       Aug 5, 2015
    Marked 2挺好用的,然后再在vimrc中添加
    ```
    :nnoremap <leader>m :silent !open -a Marked\ 2.app '%:p'<cr>
    ```
    这样就可以在vim中用`<leader>m`来快速预览。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2810 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 13:52 · PVG 21:52 · LAX 06:52 · JFK 09:52
    ♥ Do have faith in what you're doing.