aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/base.vim3
-rw-r--r--src/rst_tables.py2
-rw-r--r--tests/test_rst_tables.py4
3 files changed, 3 insertions, 6 deletions
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 <silent> <leader><leader>c :call CreateTable()<CR>
- endif
if !hasmapto('ReformatTable(')
noremap <silent> <leader><leader>f :call ReformatTable()<CR>
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)
diff --git a/tests/test_rst_tables.py b/tests/test_rst_tables.py
index 6c486dd..0f1f354 100644
--- a/tests/test_rst_tables.py
+++ b/tests/test_rst_tables.py
@@ -20,7 +20,7 @@ import os
import unittest
# Load test subjects
-from rst_tables import get_table_bounds, create_table, parse_table, \
+from rst_tables import get_table_bounds, reformat_table, parse_table, \
draw_table, table_line, get_column_widths, \
pad_fields, unify_table, join_rows
@@ -198,7 +198,7 @@ This is paragraph text *before* the table.
This is paragraph text *after* the table, with
a line ending.
""".split('\n')
- create_table()
+ reformat_table()
self.assertEquals(expect, vim.current.buffer)
def notestCreateComplexTable(self):