Skip to content

Commit 2caa97d

Browse files
Michal Vitecekvim-scripts
Michal Vitecek
authored andcommitted
Version 0.83
Added support for the CursorHoldI event so that the class/method/function is recognized also in Insert mode.
1 parent b0841be commit 2caa97d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

plugin/pythonhelper.vim

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" File: pythonhelper.vim
22
" Author: Michal Vitecek <fuf-at-mageo-dot-cz>
3-
" Version: 0.82
4-
" Last Modified: Jul 10, 2009
3+
" Version: 0.83
4+
" Last Modified: Jan 4, 2010
55
"
66
" Overview
77
" --------
@@ -18,12 +18,6 @@
1818
" support by issuing command :ver and looking for +python in the list of
1919
" features.
2020
"
21-
" Note: The script displays current tag on the status line only in NORMAL
22-
" mode. This is because CursorHold event is fired up only in this mode.
23-
" However if you badly need to know what tag you are in even in INSERT or
24-
" VISUAL mode, contact me on the above specified email address and I'll send
25-
" you a patch that enables firing up CursorHold event in those modes as well.
26-
"
2721
" Installation
2822
" ------------
2923
" 1. Make sure your Vim has python feature on (+python). If not, you will need
@@ -744,6 +738,7 @@ endfunction
744738

745739
" autocommands binding
746740
autocmd CursorHold * call PHCursorHold()
741+
autocmd CursorHoldI * call PHCursorHold()
747742
autocmd BufDelete * silent call PHBufferDelete()
748743

749744
" time that determines after how long time of no activity the CursorHold event

0 commit comments

Comments
 (0)