diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 5e1125d..b50b930 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -36,6 +36,11 @@ setlocal foldexpr=PythonFold(v:lnum) " Custom fold function greedyily matches following blank lines function! PythonFold(lnum) let l:line = getline(a:lnum) + " TODO: Folding breaks around method decorators: + " class Class(object): + " @property + " def method(self): + " pass " Blank lines, comments, and docstrings use previous fold level if l:line =~ '^\(\s*\|#.*\|"\(""\)\=.*\)$'