1
1
" -*- vim -*-
2
2
" FILE: python.vim
3
- " LAST MODIFICATION: 2006-08-18 07:30
3
+ " LAST MODIFICATION: 2006-11-07 4:29pm
4
4
" (C) Copyright 2001-2005 Mikael Berthe <[email protected] >
5
- " Version: 1.9
5
+ " Version: 1.10
6
6
7
7
" USAGE:
8
8
"
20
20
" shift commands...
21
21
"
22
22
" REQUIREMENTS:
23
- " vim (>= 6 )
23
+ " vim (>= 7 )
24
24
"
25
25
" Shortcuts:
26
26
" [[ -- Jump to beginning of block
27
27
" ]] -- Jump to end of block
28
28
" ]v -- Select (Visual Line Mode) block
29
29
" ]< -- Shift block to left
30
30
" ]> -- Shift block to right
31
+ " ]# -- Comment selection
32
+ " ]u -- Uncomment selection
31
33
" ]c -- Select current/previous class
32
34
" ]f -- Select current/previous function
33
35
" ]<up> -- Jump to previous line with the same/lower indentation
@@ -45,6 +47,11 @@ vmap ]< <
45
47
map ]> [[V]]>
46
48
vmap ]> >
47
49
50
+ map ]# :call PythonCommentSelection()<CR>
51
+ vmap ]# :call PythonCommentSelection()<CR>
52
+ map ]u :call PythonUncommentSelection()<CR>
53
+ vmap ]u :call PythonUncommentSelection()<CR>
54
+
48
55
map ]c :call PythonSelectObject("class")<CR>
49
56
map ]f :call PythonSelectObject("function")<CR>
50
57
@@ -72,14 +79,14 @@ nmenu <silent> &Python.Shift\ Block\ Right<Tab>]>
72
79
vmenu <silent> &Python.Shift\ Block\ Right<Tab> ]>
73
80
\] >
74
81
nmenu &Python.- Sep3- :
75
- vmenu <silent> &Python.Comment \ Selection
76
- \: call PythonCommentSelection () <CR>
77
- nmenu <silent> &Python.Comment \ Selection
78
- \: call PythonCommentSelection () <CR>
79
- vmenu <silent> &Python.Uncomment\ Selection
80
- \: call PythonUncommentSelection () <CR>
81
- nmenu <silent> &Python.Uncomment\ Selection
82
- \: call PythonUncommentSelection () <CR>
82
+ vmenu <silent> &Python.Comment \ Selection<Tab> ]#
83
+ \] #
84
+ nmenu <silent> &Python.Comment \ Selection<Tab> ]#
85
+ \] #
86
+ vmenu <silent> &Python.Uncomment\ Selection<Tab> ] u
87
+ \] u
88
+ nmenu <silent> &Python.Uncomment\ Selection<Tab> ] u
89
+ \] u
83
90
nmenu &Python.- Sep4- :
84
91
nmenu <silent> &Python.Previous\ Class
85
92
\: call PythonDec (" class" , -1 )<CR>
0 commit comments