Last active
February 9, 2021 15:26
-
-
Save Karneades/3d6643abf72a6a8731385e57d6ce9262 to your computer and use it in GitHub Desktop.
RegRipper output folding in VIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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