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

Commit902cb3d

Browse files
committed
Update autogroup
1 parent23c2797 commit902cb3d

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

‎AUTHORS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Contributors:
1111
* Ashley Hewson (ashleyh);
1212
* Benjamin Ruston (bruston);
1313
* Boris Filippov (frenzykryger);
14+
* Daniel Hahler (blueyed)
1415
* David Vogt (winged);
1516
* Denis Kasak (dkasak);
1617
* Dirk Wallenstein (dirkwallenstein);

‎ftplugin/python/pymode.vim‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ if !pymode#default('g:pymode_init', 1)
99
callpymode#breakpoint#init()
1010
endif
1111

12+
augrouppymode
13+
14+
au!
15+
1216
command!-buffer -nargs=1 PymodeVirtualenvcallpymode#virtualenv#activate(<args>)
1317

1418
" Setup events for pymode
15-
aupymodeBufWritePre<buffer>callpymode#buffer_pre_write()
16-
aupymodeBufWritePost<buffer>callpymode#buffer_post_write()
19+
auBufWritePre<buffer>callpymode#buffer_pre_write()
20+
auBufWritePost<buffer>callpymode#buffer_post_write()
1721

1822
" Run python code
1923
ifg:pymode_run
@@ -43,7 +47,7 @@ endif
4347

4448
" Remove unused whitespaces
4549
ifg:pymode_trim_whitespaces
46-
aupymodeBufWritePre<buffer>callpymode#trim_whitespaces()
50+
auBufWritePre<buffer>callpymode#trim_whitespaces()
4751
endif
4852

4953
" Custom options
@@ -70,19 +74,19 @@ if g:pymode_lint
7074
letb:pymode_signs= []
7175

7276
ifg:pymode_lint_on_fly
73-
au pymodeInsertLeave<buffer> PymodeLint
77+
au!InsertLeave<buffer> PymodeLint
7478
endif
7579

7680
ifg:pymode_lint_message
77-
au!pymodeCursorMoved<buffer>
78-
au!pymodeCursorMoved<buffer>callpymode#lint#show_errormessage()
81+
au!CursorMoved<buffer>
82+
au!CursorMoved<buffer>callpymode#lint#show_errormessage()
7983
endif
8084

8185
" Disabled for current release
8286
ifg:pymode_lint_async
8387
" let &l:updatetime = g:pymode_lint_async_updatetime
84-
" au!pymodeBufEnter <buffer> call pymode#lint#start()
85-
" au!pymodeBufLeave <buffer> call pymode#lint#stop()
88+
" au! BufEnter <buffer> call pymode#lint#start()
89+
" au! BufLeave <buffer> call pymode#lint#stop()
8690
end
8791

8892
endif
@@ -183,3 +187,5 @@ if g:pymode_rope
183187
end
184188

185189
end
190+
191+
augroupEND

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp