

GitHub - kannokanno/previm: Realtime preview by Vim. (Markdown, reStructuredText...
source link: https://github.com/kannokanno/previm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Previm
プレビュー用のVimプラグインです。
対応フォーマット
変換のため
Markdownとtextileの場合は必須なものはありません。
reStructuredTextの場合はrst2html.py
が必要です。docutils
をインストールするとrst2html.py
コマンドが使えるようになります。
% pip install docutils
% rst2html.py --version
rst2html.py (Docutils 0.12 [release], Python 2.7.5, on darwin)
プレビューを開くため
必須なものはありません。
open-browser.vimは任意で使用できます。
使い方(Markdownの場合)
- .vimrc にて
g:previm_open_cmd
を定義します- この値はコマンドラインから実行できるコマンドです
- たとえばMacなら
open -a Safari
などです :help g:previm_open_cmd
を参照してください- open-browserを使う場合は設定不要です
filetype
がMarkdownのファイルの編集を開始します:PrevimOpen
を実行してブラウザを開きます- 元のVimバッファに戻り編集を続けます
- 変更の度にブラウザの表示内容が更新されます
Safari13.0.3ではブラウザが「Loading...」のままで止まってしまうことが報告されています
previmを動作させるために以下の設定をしてください
- メニューバーの Safari > 環境設定 > 詳細 > メニューバーに"開発"メニューを表示にチェック
- メニューバーの 開発 > ローカルファイルの制限を無効にする を選択
mermaid
mermaidに対応しています。
```mermaid graph TD; A-->B; A-->C; B-->D; C-->E; ```
PlantUML
PlantUML に対応しています。
```plantuml @startuml Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml ```
Recommend
-
101
reStructuredText Back-End for Org Export Engine Ox-Rst Ox-Rst exports your Org documents to reStructuredText. Ox-Rst relies on the Org-mode 9.0 export framework. ...
-
61
README.org reStructuredText Back-End for Org Export Engine Ox-Rst Ox-Rst exports your Org documents to reStructuredText. Ox-Rst relies on the...
-
99
README.mkd README in English Previm プレビュー用のVimプラグインです。
-
77
README.md markdown-preview-eww.el Realtime preview by eww.
-
34
reStructuredText 是扩展名为.rst的纯文本文件,含义为"重新构建的文本"",也被简称为:RST或reST。 官方网址: http://docutils.sourceforge.net/rst.html
-
61
README.md GoDoc Playground
-
13
Introduction reStructuredText (one word) is a plain-text markup language for writing technical documents, books, websites, and more. It is eas...
-
9
[Python] Convert HTML Table to reStructuredText list-table February 28, 2016...
-
7
Problem Convert (01-001), (01-002), ... to [01-001]_, [01-002]_, ... Convert 〔註01-001〕, 〔註01-002〕, ... to .. [01-001], .. [01-002], ... Solution #!/usr/bin/env pyt...
-
11
Use Pelican static site generator to generate index.html by writing reStructuredText...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK