From 43bc4bc18c1ea38f609413c8e9ab2995b8bf1a26 Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Fri, 26 Feb 2016 11:18:37 +0900 Subject: [PATCH 1/1] Fix comments for TableFormat #265 --- ftplugin/markdown.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 71c6735..14c24bc 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -456,12 +456,14 @@ function! s:TableFormat() " Search instead of `normal! j` because of the table at beginning of file edge case. call search('|') normal! j - " Remove everything that is not a pipe othewise well formated tables would grow - " because of addition of 2 spaces on the separator line by Tabularize /|. + " Remove everything that is not a pipe, colon or hyphen next to a colon othewise + " well formated tables would grow because of addition of 2 spaces on the separator + " line by Tabularize /|. let l:flags = (&gdefault ? '' : 'g') execute 's/\(:\@