vimrc/sources_non_forked/ack.vim/ftplugin/qf.vim

10 lines
322 B
VimL
Raw Normal View History

2014-07-02 11:18:18 +00:00
if exists("g:ack_autofold_results") && g:ack_autofold_results
2014-04-18 12:58:02 +00:00
setlocal foldlevel=0
setlocal foldmethod=expr
setlocal foldexpr=matchstr(getline(v:lnum),'^[^\|]\\+')==#matchstr(getline(v:lnum+1),'^[^\|]\\+')?1:'<1'
setlocal foldenable
setlocal foldclose=all
setlocal foldopen=all
nnoremap <buffer> j jzz
endif