mirror of
https://github.com/amix/vimrc
synced 2024-12-14 14:12:33 +00:00
9 lines
286 B
VimL
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
|