Skip to content

Easily create and reformat your RST (reStructuredText) tables as you change cell content.

Notifications You must be signed in to change notification settings

kri5/vim-rst-tables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-rst-tables

http://stillmaintained.com/nvie/vim-rst-tables.png

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

Usage

  1. Open a reStructuredText file

  2. Create some kind of table outline:

    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.
    
  1. Put your cursor somewhere in the table.

  2. Press ,,f (to create the table). The output will look something like this:

    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.
    

About

Easily create and reformat your RST (reStructuredText) tables as you change cell content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 69.1%
  • Vim Script 30.9%