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. --- src/base.vim | 28 ++++++++++++++++++++++++++++ src/rst_tables.py | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 src/base.vim create mode 100644 src/rst_tables.py (limited to 'src') diff --git a/src/base.vim b/src/base.vim new file mode 100644 index 0000000..fc30e05 --- /dev/null +++ b/src/base.vim @@ -0,0 +1,28 @@ +" +" reStructuredText tables plugin +" Language: Python (ft=python) +" Maintainer: Vincent Driessen +" Version: Vim 7 (may work with lower Vim versions, but not tested) +" URL: http://github.com/nvie/vim-rst-tables +" + +" Only do this when not done yet for this buffer +if exists("g:loaded_rst_tables_ftplugin") + finish +endif +let loaded_rst_tables_ftplugin = 1 + +python << endpython +__PYTHON_SOURCE__ +endpython + +" Add mappings, unless the user didn't want this. +" The default mapping is registered, unless the user remapped it already. +if !exists("no_plugin_maps") && !exists("no_rst_table_maps") + if !hasmapto('CreateTable(') + noremap c :call CreateTable() + endif + if !hasmapto('ReformatTable(') + noremap f :call ReformatTable() + endif +endif diff --git a/src/rst_tables.py b/src/rst_tables.py new file mode 100644 index 0000000..4fd8d0f --- /dev/null +++ b/src/rst_tables.py @@ -0,0 +1,6 @@ +import vim +import os +import os.path +from vim_bridge import bridged + + -- cgit v1.2.3