Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0eb8452

Browse files
committed
removed confusing autocommands to fix folding
1 parent52ef7ab commit0eb8452

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
ifg: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
setlocalfoldmethod=expr
6659
setlocalfoldexpr=pymode#folding#expr(v:lnum)
6760
setlocalfoldtext=pymode#folding#text()
6861

69-
70-
au! pymodeInsertEnter*.pysetlocalfoldmethod=manual
71-
au! pymodeInsertLeave*.pylets:save_winview=winsaveview()
72-
73-
au pymodeInsertLeave*.pylets:save_cursor=getcurpos()
74-
au pymodeInsertLeave*.pysetnofoldenable
75-
au pymodeInsertLeave*.pysetlocalfoldmethod=expr
76-
au pymodeInsertLeave*.pysetfoldenable
77-
au pymodeInsertLeave*.pycallwinrestview(s:save_winview)
78-
au pymodeInsertLeave*.pycallsetpos('.',s:save_cursor)
79-
au pymodeInsertLeave*.pycallwinrestview(s:save_winview)
80-
8162
endif
8263

8364
" Remove unused whitespaces

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp