From bc4a2e1576c66ae5eea5463990d73528b3fc75bf Mon Sep 17 00:00:00 2001 From: Tommy Allen Date: Fri, 5 Aug 2016 00:47:28 -0400 Subject: help, man.vim: "outline" (TOC) feature #5169 --- runtime/ftplugin/qf.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'runtime/ftplugin/qf.vim') diff --git a/runtime/ftplugin/qf.vim b/runtime/ftplugin/qf.vim index 98c8f932bc..80e86c4d16 100644 --- a/runtime/ftplugin/qf.vim +++ b/runtime/ftplugin/qf.vim @@ -14,3 +14,26 @@ let b:undo_ftplugin = "set stl<" " Display the command that produced the list in the quickfix window: setlocal stl=%t%{exists('w:quickfix_title')?\ '\ '.w:quickfix_title\ :\ ''}\ %=%-15(%l,%c%V%)\ %P + +function! s:setup_toc() abort + if get(w:, 'quickfix_title') !~# '\ call s:setup_toc() +augroup END -- cgit