From 9f383b92beb73b75f8920d9cdebe11cc42c90d93 Mon Sep 17 00:00:00 2001 From: Dhruva Sagar Date: Mon, 9 Oct 2017 20:44:50 +0530 Subject: [PATCH] Play nice with vimwiki. Fix #110 In order to use vim table mode over vimwiki native table formatting support you need to add the following vimwiki settings to your vimrc : ```vim let g:vimwiki_table_mappings=0 let g:vimwiki_table_auto_fmt=0 ``` --- autoload/tablemode/table.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tablemode/table.vim b/autoload/tablemode/table.vim index 432f62f..784fca2 100644 --- a/autoload/tablemode/table.vim +++ b/autoload/tablemode/table.vim @@ -79,7 +79,7 @@ endfunction function! tablemode#table#GetCommentStart() "{{{2 let cstring = &commentstring if tablemode#utils#strlen(cstring) > 0 - return substitute(split(cstring, '%s')[0], '[^()]', '\\\0', 'g') + return substitute(split(cstring, '%s')[0], '[^(%)]', '\\\0', 'g') else return '' endif