Fold a C sharp region
From Vim Tips Wiki
created 2006 · complexity basic · author John Cena · version 6.0
Here is how to fold the following region by typing
#region ... #endregion
Just add the following line in your cs.vim file placed in syntax folder beneath your vimruntime path.
let b:match_words = '\s*#\s*region.*$:\s*#\s*endregion'
It works even if the cursor is not on the "#region" keyword.
And copy the "matchit.vim" file from your macros folder to plugin folder for it to automatically load everytime a window opens.