Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

instant rst preview in browser

NotificationsYou must be signed in to change notification settings

gu-fan/InstantRst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 

Repository files navigation

Version:0.9.8

So, You'll see.

—InstantRst

A vim plugin for preview rst document instantly.

You can share the address through LAN too.(And, You should note, all the navigation/edit inside your rst wiki will be show on that address,if withInstantRst!)

https://github.com/Rykka/github_things/raw/master/image/rst_quick_start.gif

riv.vim (vim) +InstantRst (web server) +rhythm.css (theme)


This is an intro for vim usage.

To use only the server, seeinstant-rst.py.

1   Install

  1. Vim with Vundle or NeoBundle:

    NeoBundle 'Rykka/InstantRst'

  2. Python:

# Got some issue on pypi# sudo pip install instant-rstsudo pip install https://github.com/Rykka/instant-rst.py/archive/master.zip
  1. Curl:
sudo apt-get install curl

2   Commands

Inside a rst buffer.

:InstantRst[!]
Preview current buffer.Add! to previewALL rst buffer.
:StopInstantRst[!]
Stop Preview current bufferAdd! to stop previewALL rst buffer.
NOTE:

If you find the server is still runnning after you stop it.

You can find the process ofinstantRst and stop it manually.

3   Options

g:instant_rst_slow
Preview rst in fast or slow mode, default is0.If your computer is a bit slow, set it to 1.
g:instant_rst_browser
Web browser for preview. default is''.And thenfirefox will be used.
g:instant_rst_template

Directory where the template for rendered pages is located.

Defaults to usingrhythm.css, that is bundled with the server.

g:instant_rst_static

Directory for static files used by the template.To be used together with g:instant_rst_template

Also defaults to the bundledrhythm.css

g:instant_rst_port

The port of webserver, default is5676.

Then the server is athttp://localhost:5676

And you can open it at your lan ip too.

If your vim is installed with '+py', then it will open at your lan ip.

likehttp://192.168.1.123:5676

g:instant_rst_localhost_only

Only use localhost, and disable lan ip

Whenever your vim has '+py'

g:instant_rst_forever
Always preview all rst buffer, default is0.
g:instant_rst_bind_scroll

Bind scroll with browser.

When scrolling with Vim, The browser will scroll either.

default is1

g:instant_rst_additional_dirs

Serve additional directories for previewing, default is an empty array[].

For example:['/home/<my_user>/<my_rst_project>/images', '/home/<my_user>/<my_rst_project>/docs']

It requires the absolute path of the directory, and the last directory name is used in the server.

A request made to/images/cats/1.png will try to serve the file from/home/<my_user>/<my_rst_project>/images/cats/1.png

4   TODO

  1. rst's inline image file contained are not displayed.

5   Related

This plugin is forRiv.vim.

which is a vim plugin for writing rst documents.

6   Issues

for debian user, you may need to install gevent manually

sudo apt-get install libevent-devsudo apt-get install python-all-devsudo pip install greenletsudo pip install gevent

7   CHANGELOG

0.9.8
add support for static file directory

8   License

MIT

About

instant rst preview in browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2026 Movatter.jp