• Stars
    star
    512
  • Rank 86,323 (Top 2 %)
  • Language
    Vim Script
  • Created over 12 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Notes and Wiki with rst.

Riv: Notes and wiki in rst

Last Update:2018-01-21
Version: 0.793

New Changes

0.793: fix the RivInstruction, add RivDoc

0.792: fix the python/rst syntax file

0.791: Add a conceal syntax for *.rst filelink

0.79: As The clickable is not stable, and with many voting to disable it, revert to 0.77.

Intro

Riv is a vim plugin for taking notes with reStructuredText.

https://user-images.githubusercontent.com/579129/35188163-ea914ce8-fe6b-11e7-8a8e-11527785122b.gif

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

Comparison

First things first.

There are some other note plugins in Vim, like vimwiki, vim-notes, VOoM, etc.

Also org-mode if you are an Emacs fan.

Why use this plugin?

In comparison, the biggest advantage of Riv.vim is reStructuredText support.

reStructuredText is a markup language.

Its syntax is similar to markdown, but more powerful and extensible. Tables, LaTex, etc. are supported.

It's widely used in the Python community, and has many relevant plugins. Sphinx (www.readthedocs.org) Pygments, Nikola, etc.

Here is a post comparing reStructuredText and Markdown: https://gist.github.com/dupuy/1855764

Features

Wiki
Write wiki with project and file link support. TODO syntax is added.
Editing
Faster typing, easier navigation, clear indenting, auto formatting etc.
Reading
Improved syntax highlighting and folding support for reading document clearly.
Publish
Convert RST files to a number of different formats: PDF, HTML, XML, Latex and ODT, etc. A new theme rhythm.css is added for better performance.
Plugins

Support many plugins like Sphinx syntax support. Other RST plugins:

Contribution to this list are welcome.

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

Tutorials

You can have a quick start with :RivQuickStart.

Here is the Screencast:

New To Vim

  • 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.

New To RST

New To 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 tweet me there too.

Common Issues

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

    Or just :w as it will auto-refold 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.

License

MIT

More Repositories

1

colorv.vim

edit color easy
Vim Script
135
star
2

InstantRst

instant rst preview in browser
Vim Script
106
star
3

clickable.vim

Make things clickable
Vim Script
39
star
4

instant-rst.py

A local server for preview rst document instantly
CSS
37
star
5

simpleterm.vim

simple terminal in vim
Vim Script
31
star
6

vue-edge-check

Check Browser Edge Reactivelyโœจ
JavaScript
30
star
7

rhythm.css

A theme for rst
CSS
19
star
8

trans.vim

Easier translation in vim
Vim Script
18
star
9

galaxy.vim

One colorscheme that contains them all
Vim Script
15
star
10

easydigraph.vim

input special characters easier (+digraph).
Vim Script
15
star
11

mathematic.vim

for inputting mathematic symbols.
Vim Script
14
star
12

autotype.vim

Auto typing in vim
Vim Script
11
star
13

lastbuf.vim

open last closed buffer
Vim Script
6
star
14

localbundle.vim

faster loading and working speed with vundle
Vim Script
6
star
15

jass.vim

A vim syntax file for jass
Vim Script
4
star
16

doctest.vim

DocTest in vim
Vim Script
4
star
17

mongoose-comments

comments plugin for mongoose schema
JavaScript
3
star
18

django-kindeditor

Kindeditor widget as django rich text editor.
JavaScript
3
star
19

dot.vim

vim.settings
Vim Script
2
star
20

react-webpack-livereload

barebone app for your react development
JavaScript
2
star
21

dotfiles

.vimrc .zshrc .tmux.conf .etc...
Vim Script
2
star
22

awesome

config file for awesome wm
Lua
2
star
23

git

gitfiles
Vim Script
2
star
24

cj_server

JavaScript
2
star
25

clickable-things

clickable things for clickable.vim
Vim Script
2
star
26

require.vim

require vim easy
Vim Script
2
star
27

mars.css

css theme for markup language
CSS
1
star
28

random.vim

embracing the randomness
Vim Script
1
star
29

vagrant-centos-nodejs

JavaScript
1
star
30

Scripts

utility use under ubuntu
1
star
31

os.vim

provide os consistency with mac/win/linux
Vim Script
1
star
32

what_web_will_be

A thought experiment of what web will be, starting at sping 2015.
1
star
33

docker-compose-alpine

JavaScript
1
star
34

awesome-shadow

shadow theme of awesome
Lua
1
star
35

zendjango.vim

zen of django
Vim Script
1
star
36

bonusgen

a simple bonus generator
JavaScript
1
star