diff --git a/plugin/python.vim b/plugin/python.vim index d4fdc87..a2e104b 100644 --- a/plugin/python.vim +++ b/plugin/python.vim @@ -1,8 +1,8 @@ " -*- vim -*- " FILE: python.vim -" LAST MODIFICATION: 2006-11-07 4:29pm +" LAST MODIFICATION: 2006-11-29 4:09pm " (C) Copyright 2001-2005 Mikael Berthe -" Version: 1.10 +" Version: 1.11 " USAGE: " @@ -59,6 +59,22 @@ map ] :call PythonNextLine(-1) map ] :call PythonNextLine(1) " You may prefer use and ... :-) +" jump to previous class +map ]J :call PythonDec("class", -1) +vmap ]J :call PythonDec("class", -1) + +" jump to next class +map ]j :call PythonDec("class", 1) +vmap ]j :call PythonDec("class", 1) + +" jump to previous function +map ]F :call PythonDec("function", -1) +vmap ]F :call PythonDec("function", -1) + +" jump to next function +map ]f :call PythonDec("function", 1) +vmap ]f :call PythonDec("function", 1) + " Menu entries @@ -88,14 +104,14 @@ vmenu &Python.Uncomment\ Selection]u nmenu &Python.Uncomment\ Selection]u \]u nmenu &Python.-Sep4- : -nmenu &Python.Previous\ Class - \:call PythonDec("class", -1) -nmenu &Python.Next\ Class - \:call PythonDec("class", 1) -nmenu &Python.Previous\ Function - \:call PythonDec("function", -1) -nmenu &Python.Next\ Function - \:call PythonDec("function", 1) +nmenu &Python.Previous\ Class]J + \]J +nmenu &Python.Next\ Class]j + \]j +nmenu &Python.Previous\ Function]F + \]F +nmenu &Python.Next\ Function]f + \]f nmenu &Python.-Sep5- : nmenu &Python.Select\ Block]v \]v