From e07c336bca7861790e8bbc496bb7a47f489e0907 Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Thu, 25 Feb 2016 10:44:41 +0900 Subject: [PATCH 1/1] TableFormat does not remove colons for alignment Fix #265, #220 --- ftplugin/markdown.vim | 5 ++++- test/table-format.vader | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index c7fba7f..71c6735 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -459,8 +459,11 @@ function! s:TableFormat() " 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 /|. let l:flags = (&gdefault ? '' : 'g') - execute 's/[^|]//' . l:flags + execute 's/\(:\@