From: Ciro Santilli Date: Fri, 25 Jul 2014 09:53:10 +0000 (+0200) Subject: Merge pull request #108 from cirosantilli/lopen X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/dc61d198de36dd3a45b8722617a101d4e4e8e0ae?hp=3beadab6747d0f2b6256ed7cbdab95630fcbc29e Merge pull request #108 from cirosantilli/lopen Use location for :Toc list instead of quickfix. --- diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index 4744512..41787f0 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -302,21 +302,21 @@ function! s:Markdown_Toc(...) endif try - silent vimgrep /\(^\S.*\(\n[=-]\+\n\)\@=\|^#\+\)/ % + silent lvimgrep /\(^\S.*\(\n[=-]\+\n\)\@=\|^#\+\)/ % catch /E480/ echom "Toc: No headers." return endtry if l:window_type ==# 'horizontal' - copen + lopen elseif l:window_type ==# 'vertical' - vertical copen + vertical lopen let &winwidth=(&columns/2) elseif l:window_type ==# 'tab' - tab copen + tab lopen else - copen + lopen endif set modifiable %s/\v^([^|]*\|){2,2} #//