149
142

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vimでMarkdownのプレビュー

Posted at

今月の「Software Design」のvimの特集記事を見てやってみたのでメモ。

参考サイト:
http://www.key-p.com/blog/staff/archives/9032

.vimrc の設定

NeoBundle 'plasticboy/vim-markdown'
NeoBundle 'kannokanno/previm'
NeoBundle 'tyru/open-browser.vim'

au BufRead,BufNewFile *.md set filetype=markdown
let g:previm_open_cmd = 'open -a Firefox'

こんだけ。で、
README.md とかを編集して、保存したら、

:PrevimOpen

と打つと勝手にFirefoxが立ち上がってプレビューしてくれる。

:w

すればブラウザも自動で更新される。
素晴らしい。。。。

149
142
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
149
142

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?