We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7038a6 commit e82be74Copy full SHA for e82be74
ftplugin/markdown.vim
@@ -550,7 +550,7 @@ function! s:TableFormat()
550
" Move colons for alignment to left or right side of the cell.
551
execute 's/:\( \+\)|/\1:|/e' . l:flags
552
execute 's/|\( \+\):/|:\1/e' . l:flags
553
- execute 's/ /-/' . l:flags
+ execute 's/|:\?\zs[ -]\+\ze:\?|/\=repeat("-", len(submatch(0)))/' . l:flags
554
call setpos('.', l:pos)
555
endfunction
556
0 commit comments