1
0
mirror of https://github.com/gryf/python.vim.git synced 2025-12-17 19:40:28 +01:00

Version 1.11: Add shortcuts for all remaining menu options.

This commit is contained in:
Jon Franklin
2006-11-29 00:00:00 +00:00
committed by Able Scraper
parent ef20af29a9
commit bf1056d729

View File

@@ -1,8 +1,8 @@
" -*- vim -*- " -*- vim -*-
" FILE: python.vim " FILE: python.vim
" LAST MODIFICATION: 2006-11-07 4:29pm " LAST MODIFICATION: 2006-11-29 4:09pm
" (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net> " (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net>
" Version: 1.10 " Version: 1.11
" USAGE: " USAGE:
" "
@@ -59,6 +59,22 @@ map ]<up> :call PythonNextLine(-1)<CR>
map ]<down> :call PythonNextLine(1)<CR> map ]<down> :call PythonNextLine(1)<CR>
" You may prefer use <s-up> and <s-down>... :-) " You may prefer use <s-up> and <s-down>... :-)
" jump to previous class
map ]J :call PythonDec("class", -1)<CR>
vmap ]J :call PythonDec("class", -1)<CR>
" jump to next class
map ]j :call PythonDec("class", 1)<CR>
vmap ]j :call PythonDec("class", 1)<CR>
" jump to previous function
map ]F :call PythonDec("function", -1)<CR>
vmap ]F :call PythonDec("function", -1)<CR>
" jump to next function
map ]f :call PythonDec("function", 1)<CR>
vmap ]f :call PythonDec("function", 1)<CR>
" Menu entries " Menu entries
@@ -88,14 +104,14 @@ vmenu <silent> &Python.Uncomment\ Selection<Tab>]u
nmenu <silent> &Python.Uncomment\ Selection<Tab>]u nmenu <silent> &Python.Uncomment\ Selection<Tab>]u
\]u \]u
nmenu &Python.-Sep4- : nmenu &Python.-Sep4- :
nmenu <silent> &Python.Previous\ Class nmenu <silent> &Python.Previous\ Class<Tab>]J
\:call PythonDec("class", -1)<CR> \]J
nmenu <silent> &Python.Next\ Class nmenu <silent> &Python.Next\ Class<Tab>]j
\:call PythonDec("class", 1)<CR> \]j
nmenu <silent> &Python.Previous\ Function nmenu <silent> &Python.Previous\ Function<Tab>]F
\:call PythonDec("function", -1)<CR> \]F
nmenu <silent> &Python.Next\ Function nmenu <silent> &Python.Next\ Function<Tab>]f
\:call PythonDec("function", 1)<CR> \]f
nmenu &Python.-Sep5- : nmenu &Python.-Sep5- :
nmenu <silent> &Python.Select\ Block<Tab>]v nmenu <silent> &Python.Select\ Block<Tab>]v
\]v \]v