From 81c52547b08e24b2be35ddca47167527e958fa6e Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Thu, 19 Aug 2010 11:43:03 +0200 Subject: Remove CreateTable(). This implementation only needs ReformatTable(), also for creation. --- src/base.vim | 3 --- src/rst_tables.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/base.vim b/src/base.vim index 980bc5e..46bdb05 100644 --- a/src/base.vim +++ b/src/base.vim @@ -23,9 +23,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 c :call CreateTable() - endif if !hasmapto('ReformatTable(') noremap f :call ReformatTable() endif diff --git a/src/rst_tables.py b/src/rst_tables.py index 3fb8923..7273b8d 100644 --- a/src/rst_tables.py +++ b/src/rst_tables.py @@ -168,7 +168,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) -- cgit v1.2.3