GithubHelp home page GithubHelp logo

riv.vim's Introduction

Riv: Take Notes in rst

The Internet is just a world passing around notes in a classroom.

โ€”Jon Stewart

Last Update:2014-07-12
Version:0.76

Intro

Riv is short for 'reStructuredText in Vim'.

It is a vim plugin for writing notes with reStructuredText.

Comparion

First things first, Why using this plugin?

There are some other note plugins in vim. (Also org-mode if you are a Emacs fan)

like vimwiki, vim-notes, etc.

In comparition, the most advantage of Riv.vim is it support reStructuredText for your note.

And reStructuredText's syntax are markdown alike, but are more powerful and extensible, support like table, LaTex, ect. (This post have a comparions between them https://gist.github.com/dupuy/1855764)

It's used in many places like Sphinx (www.readthedocs.org) and have many relevent plugins(Pygments, Nikola).

And it's using sofish's typo.css for better preview.

Features

Wiki
Write rst document as a wiki with project and local file support. Also TODO syntax is added.
Editing
Faster typing, easier navigation, clear intending, auto formatting lists/tables etc.
Reading
Improved syntax highlighting and folding support for you to read document in vim more clearly.
Publish
Convert rst files to a number of different formats such as pdf, html, xml, latex, odt etc.
Sphinx
Sphinx syntax support.

Installation

Using Vundle

Recommended, Add this line to your .vimrc (after you have properly set up Vundle):

Bundle 'Rykka/riv.vim'

Downloaded zip/tar.gz file

Extract the contents of the archive to your .vim directory.

Config

You can add projects with g:riv_projects:

let proj1 = { 'path': '~/Dropbox/rst',}
let g:riv_projects = [proj1]

More options see the :RivInstruction

Make sure your .vim directory is before $VIMRUNTIME in runtimepath. By default it IS present before $VIMRUNTIME.

Also Make sure filetype plugin indent on and syntax on options are present in your .vimrc.

Related tools

  • Python: InstantRst for preview rst document instantly.
  • Python: Docutils, required for converting reST files to other formats.
  • Python: Pygments, provides syntax highlighting for other formats.
  • Python: Sphinx for Sphinx users.
  • Vim: Syntastic for syntax checking. Requires Docutils.
  • Python: Nikola for static blogging with rst syntax.
  • Python: HoverCraft for writing presentation from rst.

Tutorials

You can start with :RivQuickStart.

Here is the Screencast:

Vim newbie

  • If you are new to Vim, you can get a basic overview of Vim using vimtutor. To use it simply type vimtutor in your shell.
  • To view the quick reference of Vim, use :h quickref.

reST newbie

Riv

  • For getting started with Riv, read "QuickStart With Riv". You can also view it using :RivQuickStart in Vim.
  • Detailed instructions for Riv are available at "Instructions". Use :RivInstruction to read the same in Vim.

Issues

The bug tracker for Riv is at https://github.com/Rykka/riv.vim/issues. You can use it to report bugs and open feature requests. Discussions related to Riv are welcome too.

You can follow my twitter @rykkaf and notice me there too.

Common Issues

  • If you get errors with folding in documents, you can try to force reload using :RivTestReload or <C-E>t`.

    Or just :w as it will auto refolding after saving.

  • Windows:

    • Converting to other formats may fail.

      This could happen due to Docutils not working correctly with vimrun.exe.

  • Mac OS:

    • Lists don't act as expected.

      This could happen if the <C-Enter> key could not be mapped. Try some other mapping instead.

riv.vim's People

Contributors

davidjb avatar gu-fan avatar jiancheng avatar mizuchi avatar mt3 avatar mxlian avatar waywardmonkeys avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.