Set table_mode_disable_mappings to 0 by default

This commit is contained in:
Alex Rodionov
2014-07-23 10:23:09 +07:00
parent 135d571e9c
commit 67969ae5cf
2 changed files with 2 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ function! s:ToggleMapping() "{{{2
" '|' is a special character, we need to map <Bar> instead
if g:table_mode_separator ==# '|' | let separator_map = '<Bar>' | endif
if !exists('g:table_mode_disable_mappings')
if g:table_mode_disable_mappings == 0
if tablemode#IsActive()
call s:Map('<Plug>(table-mode-tableize)', separator_map, 'i')
call s:Map('<Plug>(table-mode-motion-up)', '{<Bar>', 'n')

View File

@@ -43,6 +43,7 @@ call s:SetGlobalOptDefault('table_mode_always_active', 0)
call s:SetGlobalOptDefault('table_mode_delimiter', ',')
call s:SetGlobalOptDefault('table_mode_corner_corner', '|')
call s:SetGlobalOptDefault('table_mode_align_char', ':')
call s:SetGlobalOptDefault('table_mode_disable_mappings', 0)
function! s:TableEchoCell() "{{{1
if tablemode#table#IsRow('.')