aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base.vim8
-rw-r--r--src/rst_tables.py3
2 files changed, 4 insertions, 7 deletions
diff --git a/src/base.vim b/src/base.vim
index 037a9dd..282f4e0 100644
--- a/src/base.vim
+++ b/src/base.vim
@@ -23,10 +23,10 @@ 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('ReformatTable(')
- noremap <silent> <leader><leader>c :call ReformatTable()<CR>
+ if !hasmapto(' reformat_table(')
+ noremap <silent> <leader><leader>c :python reformat_table()<CR>
endif
- if !hasmapto('ReflowTable(')
- noremap <silent> <leader><leader>f :call ReflowTable()<CR>
+ if !hasmapto(' reflow_table(')
+ noremap <silent> <leader><leader>f :python reflow_table()<CR>
endif
endif
diff --git a/src/rst_tables.py b/src/rst_tables.py
index 50f5b3b..a2cfc43 100644
--- a/src/rst_tables.py
+++ b/src/rst_tables.py
@@ -1,7 +1,6 @@
import vim
import re
import textwrap
-from vim_bridge import bridged
def get_table_bounds():
@@ -255,7 +254,6 @@ def draw_table(indent, table, manual_widths=None):
return output
-@bridged
def reformat_table():
upper, lower, indent = get_table_bounds()
slice = vim.current.buffer[upper - 1:lower]
@@ -264,7 +262,6 @@ def reformat_table():
vim.current.buffer[upper - 1:lower] = slice
-@bridged
def reflow_table():
upper, lower, indent = get_table_bounds()
slice = vim.current.buffer[upper - 1:lower]