From 2caa97d75f142c6f76badf0388bf2082916f7fb4 Mon Sep 17 00:00:00 2001 From: Michal Vitecek Date: Mon, 4 Jan 2010 00:00:00 +0000 Subject: [PATCH] Version 0.83 Added support for the CursorHoldI event so that the class/method/function is recognized also in Insert mode. --- plugin/pythonhelper.vim | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/plugin/pythonhelper.vim b/plugin/pythonhelper.vim index 602b98a..d5d3337 100644 --- a/plugin/pythonhelper.vim +++ b/plugin/pythonhelper.vim @@ -1,7 +1,7 @@ " File: pythonhelper.vim " Author: Michal Vitecek -" Version: 0.82 -" Last Modified: Jul 10, 2009 +" Version: 0.83 +" Last Modified: Jan 4, 2010 " " Overview " -------- @@ -18,12 +18,6 @@ " support by issuing command :ver and looking for +python in the list of " features. " -" Note: The script displays current tag on the status line only in NORMAL -" mode. This is because CursorHold event is fired up only in this mode. -" However if you badly need to know what tag you are in even in INSERT or -" VISUAL mode, contact me on the above specified email address and I'll send -" you a patch that enables firing up CursorHold event in those modes as well. -" " Installation " ------------ " 1. Make sure your Vim has python feature on (+python). If not, you will need @@ -744,6 +738,7 @@ endfunction " autocommands binding autocmd CursorHold * call PHCursorHold() +autocmd CursorHoldI * call PHCursorHold() autocmd BufDelete * silent call PHBufferDelete() " time that determines after how long time of no activity the CursorHold event