vim:ftplugin:python: Use indent as foldmethod
This commit is contained in:
@@ -6,3 +6,7 @@ setlocal expandtab
|
|||||||
setlocal smarttab
|
setlocal smarttab
|
||||||
" PEP-8 wants 79 as maximum line length
|
" PEP-8 wants 79 as maximum line length
|
||||||
setlocal textwidth=79
|
setlocal textwidth=79
|
||||||
|
" Lines with equal indent form a fold
|
||||||
|
set foldmethod=indent
|
||||||
|
" Open all folds after they were closed automatically by foldmethod=indent
|
||||||
|
normal zR
|
||||||
|
|||||||
Reference in New Issue
Block a user