aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorVincent Driessen <vincent@datafox.nl>2010-08-18 14:11:51 +0200
committerVincent Driessen <vincent@datafox.nl>2010-08-18 14:11:51 +0200
commit3013d6afbe4ca23de1571579082d325b44fef4d5 (patch)
treeb6b9f01956a5be3f84ff80c5d9c147cfe0217177 /ftplugin
downloadvim-rst-tables-3013d6afbe4ca23de1571579082d325b44fef4d5.tar.gz
vim-rst-tables-3013d6afbe4ca23de1571579082d325b44fef4d5.tar.bz2
vim-rst-tables-3013d6afbe4ca23de1571579082d325b44fef4d5.zip
Add initial files.
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/rst_tables.vim34
1 files changed, 34 insertions, 0 deletions
diff --git a/ftplugin/rst_tables.vim b/ftplugin/rst_tables.vim
new file mode 100644
index 0000000..c847c70
--- /dev/null
+++ b/ftplugin/rst_tables.vim
@@ -0,0 +1,34 @@
+"
+" reStructuredText tables plugin
+" Language: Python (ft=python)
+" Maintainer: Vincent Driessen <vincent@datafox.nl>
+" 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
+import vim
+import os
+import os.path
+from vim_bridge import bridged
+
+
+
+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 <silent> <leader><leader>c :call CreateTable()<CR>
+ endif
+ if !hasmapto('ReformatTable(')
+ noremap <silent> <leader><leader>f :call ReformatTable()<CR>
+ endif
+endif