Skip to content

Instantly share code, notes, and snippets.

@Karneades
Last active February 9, 2021 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karneades/3d6643abf72a6a8731385e57d6ce9262 to your computer and use it in GitHub Desktop.
Save Karneades/3d6643abf72a6a8731385e57d6ce9262 to your computer and use it in GitHub Desktop.
RegRipper output folding in VIM
" Use :RRFolding in VIM to enable plugin folding
" fold on <pluginname> v.XXXXXX
func! SetRegRipper()
setlocal foldexpr=getline(v:lnum)=~\'^\\w\\+.*\\sv\\.'?'>1':'='
setlocal foldmethod=expr
endfunc
command! RRFolding :call SetRegRipper()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment