We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1361c99 commit 6bdd7b4Copy full SHA for 6bdd7b4
autoload/pymode.vim
@@ -130,3 +130,9 @@ fun! pymode#debug(msg) "{{{
130
echom string(g:pymode_debug) . ': ' . string(a:msg)
131
endif
132
endfunction "}}}
133
+
134
+fun! pymode#quit() "{{{
135
+ augroup pymode
136
+ au!
137
+ augroup END
138
+endfunction "}}}
ftplugin/python/pymode.vim
@@ -67,6 +67,12 @@ if g:pymode_lint
67
command! -buffer -nargs=0 PymodeLintToggle :call pymode#lint#toggle()
68
command! -buffer -nargs=0 PymodeLint :call pymode#lint#check()
69
70
+ if v:version > 703 || (v:version == 703 && has('patch544'))
71
+ au! QuitPre <buffer> call pymode#quit()
72
+ else
73
+ au! pymode BufWinLeave * silent! lclose
74
+ endif
75
76
let b:pymode_error_line = -1
77
78
if g:pymode_lint_on_fly
0 commit comments