Skip to content

Commit 0eb8452

Browse files
committed
removed confusing autocommands to fix folding
1 parent 52ef7ab commit 0eb8452

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

ftplugin/python/pymode.vim

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,11 @@ endif
5454

5555
" Python folding
5656
if g:pymode_folding
57-
" On the folding problem.
58-
" =======================
59-
" What happens when your enter insert mode with fdm=expr:
60-
" TODO:
61-
"
62-
" What happens when your leave insert mode and trigger fdm=expr:
63-
" TODO:
6457

6558
setlocal foldmethod=expr
6659
setlocal foldexpr=pymode#folding#expr(v:lnum)
6760
setlocal foldtext=pymode#folding#text()
6861

69-
70-
au! pymode InsertEnter *.py setlocal foldmethod=manual
71-
au! pymode InsertLeave *.py let s:save_winview = winsaveview()
72-
73-
au pymode InsertLeave *.py let s:save_cursor = getcurpos()
74-
au pymode InsertLeave *.py set nofoldenable
75-
au pymode InsertLeave *.py setlocal foldmethod=expr
76-
au pymode InsertLeave *.py set foldenable
77-
au pymode InsertLeave *.py call winrestview(s:save_winview)
78-
au pymode InsertLeave *.py call setpos('.', s:save_cursor)
79-
au pymode InsertLeave *.py call winrestview(s:save_winview)
80-
8162
endif
8263

8364
" Remove unused whitespaces

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy