From: Ciro Santilli Date: Mon, 29 Sep 2014 07:42:27 +0000 (+0200) Subject: Merge pull request #125 from cirosantilli/remove-useless-line X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/c0ddc5537f3f023228a36cae9da0f2b3d81702b0?hp=de94e028f20cf95a669a65b0d38547918e15fbe0 Merge pull request #125 from cirosantilli/remove-useless-line Remove useless line in Toc funciton. --- diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index 42dca90..312c2a4 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -319,7 +319,6 @@ function! s:Markdown_Toc(...) lopen endif set modifiable - %s/\v^([^|]*\|){2,2} #//e for i in range(1, line('$')) " this is the location-list data for the current item let d = getloclist(0)[i-1]