aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorVincent Driessen <vincent@datafox.nl>2010-08-19 11:42:24 +0200
committerVincent Driessen <vincent@datafox.nl>2010-08-19 11:42:24 +0200
commit5aa925dac4e1dd14428e22893a3db5d1cf5306ed (patch)
treea173a9eceba8117c8f78e14683aafb5981ebfcb3 /ftplugin
parent4c81fb1df579143bdd1ec7f5b2a1779d3c3c58fd (diff)
downloadvim-rst-tables-5aa925dac4e1dd14428e22893a3db5d1cf5306ed.tar.gz
vim-rst-tables-5aa925dac4e1dd14428e22893a3db5d1cf5306ed.tar.bz2
vim-rst-tables-5aa925dac4e1dd14428e22893a3db5d1cf5306ed.zip
Credit Hugo Ruscitti, the original author of the RST for Vim plugin.
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/rst_tables.vim9
1 files changed, 5 insertions, 4 deletions
diff --git a/ftplugin/rst_tables.vim b/ftplugin/rst_tables.vim
index 43b674f..72fe5d4 100644
--- a/ftplugin/rst_tables.vim
+++ b/ftplugin/rst_tables.vim
@@ -5,6 +5,10 @@
" Version: Vim 7 (may work with lower Vim versions, but not tested)
" URL: http://github.com/nvie/vim-rst-tables
"
+" This plugin is a more flexible reimplementation of the ideas and the
+" existing Vim plugin by Hugo Ruscitti:
+" http://www.vim.org/scripts/script.php?script_id=3041
+"
" Only do this when not done yet for this buffer
if exists("g:loaded_rst_tables_ftplugin")
@@ -183,7 +187,7 @@ def draw_table(table):
@bridged
-def create_table():
+def reformat_table():
upper, lower = get_table_bounds()
slice = vim.current.buffer[upper - 1:lower]
table = parse_table(slice)
@@ -195,9 +199,6 @@ 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