Created
October 24, 2012 17:44
-
-
Save Osse/3947612 to your computer and use it in GitHub Desktop.
Hacky hack for Python
This file contains hidden or 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
" If the line is empty, search backwards and return the indent of the | |
" previous line that got an explicit number from GetPythonIndent() | |
if getline(a:lnum) == '' | |
let x = a:lnum - 1 | |
while x > 0 && GetPythonIndent(x) == -1 | |
let x = x - 1 | |
endwhile | |
return x + 1 | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment