X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c696287bba831e76846d1db316c7ce3158577fda..fc34c5a75a10b4e15530f0209f0ea1b70fa4f077:/ftplugin/markdown.vim?ds=sidebyside diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index ae81c80..752aee4 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -347,9 +347,9 @@ function! s:Toc(...) vertical lopen " auto-fit toc window when possible to shrink it if (&columns/2) > l:header_max_len && g:vim_markdown_toc_autofit == 1 - let &winwidth = (l:header_max_len + 1) + execute 'vertical resize ' . (l:header_max_len + 1) else - let &winwidth = (&columns/2) + execute 'vertical resize ' . (&columns/2) endif elseif l:window_type ==# 'tab' tab lopen