Created
March 12, 2012 16:46
-
-
Save kcollasarundell/2023268 to your computer and use it in GitHub Desktop.
Vim indenting and regex
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
"Brute force an ignorance time | |
if line =~ '^\s*#' | |
return indent | |
elseif line =~ ':\s*$' | |
return increase | |
elseif line =~ ':\s*#.*$' | |
return increase | |
else | |
return indent | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment