From 3013d6afbe4ca23de1571579082d325b44fef4d5 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Wed, 18 Aug 2010 14:11:51 +0200 Subject: Add initial files. --- README.rst | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 README.rst (limited to 'README.rst') diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..c1e77fc --- /dev/null +++ b/README.rst @@ -0,0 +1,53 @@ +Installation +------------ +1. Install the following packages from PyPI: + + - vim_bridge_: This is required for the vim plugin scripts, to call + directly into Python functions. + +2. Clone the git repository:: + + git clone git://github.com/nvie/vim-rst-tables.git + cd vim-rst-tables + +3. Copy the file ``ftplugin/rst_tables.vim`` to your ``~/.vim/ftplugin`` + directory + +.. _vim_bridge: http://pypi.python.org/pypi/vim_bridge + + +Usage +----- +1. Open a reStructuredText file +2. Create some kind of table outline + + .. code_block:: rst + This is paragraph text *before* the table. + + Column 1 Column 2 + Foo Put two (or more) spaces as a field separator. + Bar Even very very long lines like these are fine, as long as you do not put in line endings here. + Qux This is the last line. + + This is paragraph text *after* the table. + +2. Put your cursor somewhere in the table. +3. Press ``,,c`` (to create the table). The output will look something like + this: + + .. code_block:: rst + This is paragraph text *before* the table. + + +==========+=========================================================+ + | Column 1 | Column 2 | + +==========+=========================================================+ + | Foo | Put two (or more) spaces as a field separator. | + +----------+---------------------------------------------------------+ + | Bar | Even very very long lines like these are fine, as long | + | | as you do not put in line endings here. | + +----------+---------------------------------------------------------+ + | Qux | This is the last line. | + +----------+---------------------------------------------------------+ + + This is paragraph text *after* the table. + -- cgit v1.2.3