1
0
Fork 0
mirror of synced 2024-12-02 05:35:35 -05:00
ultimate-vim/sources_non_forked/ack.vim/ftplugin/qf.vim
2014-04-18 13:58:02 +01:00

9 lines
286 B
VimL

if g:ack_autofold_results
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