diff --git a/README.rst b/README.rst index deaad47..aa03663 100644 --- a/README.rst +++ b/README.rst @@ -20,8 +20,8 @@ Default shortcuts are as follows: - ``]]`` - jump to next class - ``[[`` - jump to previous class -- ``}}`` - jump to next function or method -- ``{[`` - jump to previous function or method +- ``))`` - jump to next function or method +- ``((`` - jump to previous function or method - ``]t`` - jump to beginning of block - ``]e`` - jump to end of block - ``]`` - jump to previous line with the same/lower indentation diff --git a/ftplugin/python/python_fn.vim b/ftplugin/python/python_fn.vim index a3182d3..76d59e3 100644 --- a/ftplugin/python/python_fn.vim +++ b/ftplugin/python/python_fn.vim @@ -48,12 +48,12 @@ map ]] :call PythonDec("class", 1) vmap ]] :call PythonDec("class", 1) " jump to previous function -map {{ :call PythonDec("function", -1) -vmap {{ :call PythonDec("function", -1) +map (( :call PythonDec("function", -1) +vmap (( :call PythonDec("function", -1) " jump to next function -map }} :call PythonDec("function", 1) -vmap }} :call PythonDec("function", 1) +map )) :call PythonDec("function", 1) +vmap )) :call PythonDec("function", 1) " Menu entries nmenu &Python.Update\ IM-Python\ Menu :call UpdateMenu() @@ -73,8 +73,8 @@ nmenu &Python.Uncomment\ Selection]u ]u nmenu &Python.-Sep4- : nmenu &Python.Previous\ Class[[ [[ nmenu &Python.Next\ Class]] ]] -nmenu &Python.Previous\ Function{{ {{ -nmenu &Python.Next\ Function}} }} +nmenu &Python.Previous\ Function{{ (( +nmenu &Python.Next\ Function}} )) nmenu &Python.-Sep5- : nmenu &Python.Select\ Blockvab vab nmenu &Python.Select\ Functionvaf vaf