1
0
Fork 0
mirror of synced 2024-05-24 19:15:22 -04:00
ultimate-vim/.vim_runtime/sources_non_forked/ack.vim/ftplugin/qf.vim
2022-04-13 17:21:09 +08:00

10 lines
322 B
VimL

if exists("g:ack_autofold_results") && 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