1
1
" vi: fdl = 1
2
- let g: pymode_version = " 0.6.19 "
2
+ let g: pymode_version = " 0.7.0 "
3
3
4
4
com ! PymodeVersion echomsg " Current python-mode version: " . g: pymode_version
5
5
com ! PymodeTroubleshooting call pymode#troubleshooting#test ()
@@ -20,9 +20,6 @@ call pymode#default('g:pymode_python', 'python')
20
20
" Disable pymode warnings
21
21
call pymode#default (' g:pymode_warning' , 1 )
22
22
23
- " Modify sys.path for pymode modules loading
24
- call pymode#default (' g:pymode_path' , 1 )
25
-
26
23
" Additional python paths
27
24
call pymode#default (' g:pymode_paths' , [])
28
25
@@ -45,6 +42,12 @@ call pymode#default("g:pymode_trim_whitespaces", 1)
45
42
" Set recomended python options
46
43
call pymode#default (" g:pymode_options" , 1 )
47
44
45
+ " Minimal height of pymode quickfix window
46
+ call pymode#default (' g:pymode_quickfix_maxheight' , 6 )
47
+
48
+ " Maximal height of pymode quickfix window
49
+ call pymode#default (' g:pymode_quickfix_minheight' , 3 )
50
+
48
51
" LOAD VIRTUALENV {{{
49
52
"
50
53
" Enable virtualenv support
@@ -83,60 +86,34 @@ call pymode#default("g:pymode_lint_on_write", 1)
83
86
" Check code on fly
84
87
call pymode#default (" g:pymode_lint_on_fly" , 0 )
85
88
86
- " Show current line error message
87
- call pymode#default (" g:pymode_lint_message" , 1 )
88
-
89
- " Hold cursor on current window when quickfix open
90
- call pymode#default (' g:pymode_lint_hold' , 0 )
91
-
92
- " Minimal height of pymode quickfix window
93
- call pymode#default (' g:pymode_lint_maxheight' , 6 )
94
-
95
- " Maximal height of pymode quickfix window
96
- call pymode#default (' g:pymode_lint_minheight' , 3 )
97
-
98
89
" Show message about error in command line
99
- call pymode#default (" g:pymode_lint_status " , 1 )
90
+ call pymode#default (" g:pymode_lint_message " , 1 )
100
91
101
92
" Choices are: pylint, pyflakes, pep8, mccabe
102
- call pymode#default (" g:pymode_lint_checkers" , " pyflakes, pep8, mccabe" )
93
+ call pymode#default (" g:pymode_lint_checkers" , [ ' pyflakes' , ' pep8' , ' mccabe' ] )
103
94
104
95
" Skip errors and warnings (e.g. E4,W)
105
96
call pymode#default (" g:pymode_lint_ignore" , " " )
106
97
107
- " Auto open cwindow if errors find
108
- call pymode#default (" g:pymode_lint_cwindow" , 1 )
109
-
110
98
" Select errors and warnings (e.g. E4,W)
111
99
call pymode#default (" g:pymode_lint_select" , " " )
112
100
101
+ " Auto open cwindow if any errors has been finded
102
+ call pymode#default (" g:pymode_lint_cwindow" , 1 )
103
+
113
104
" Place error signs
114
105
call pymode#default (" g:pymode_lint_signs" , 1 )
115
106
116
- " Always show the errors ruller, even if there's no errors.
117
- call pymode#default (" g:pymode_lint_signs_always_visible" , 0 )
118
-
119
- " Todo symbol.
107
+ " Symbol's definitions
120
108
call pymode#default (" g:pymode_lint_todo_symbol" , " WW" )
121
-
122
- " Comment symbol.
123
109
call pymode#default (" g:pymode_lint_comment_symbol" , " CC" )
124
-
125
- " Visual symbol.
126
110
call pymode#default (" g:pymode_lint_visual_symbol" , " RR" )
127
-
128
- " Error symbol.
129
111
call pymode#default (" g:pymode_lint_error_symbol" , " EE" )
130
-
131
- " Info symbol.
132
112
call pymode#default (" g:pymode_lint_info_symbol" , " II" )
133
-
134
- " PyFlakes' info symbol.
135
113
call pymode#default (" g:pymode_lint_pyflakes_symbol" , " FF" )
136
114
137
115
if g: pymode_lint_signs && has (' signs' )
138
116
139
- " Signs definition
140
117
execute ' sign define PymodeW text=' . g: pymode_lint_todo_symbol . " texthl=Todo"
141
118
execute ' sign define PymodeC text=' . g: pymode_lint_comment_symbol . " texthl=Comment"
142
119
execute ' sign define PymodeR text=' . g: pymode_lint_visual_symbol . " texthl=Visual"
@@ -158,7 +135,7 @@ call pymode#default('g:pymode_breakpoint', 1)
158
135
call pymode#default (' g:pymode_breakpoint_bind' , ' <leader>b' )
159
136
160
137
" Default pattern for making breakpoints. Leave this empty for auto search available debuggers (pdb, ipdb, ...)
161
- call pymode#default (' g:pymode_breakpoint_template ' , ' ' )
138
+ call pymode#default (' g:pymode_breakpoint_cmd ' , ' ' )
162
139
163
140
" }}}
164
141
@@ -171,6 +148,7 @@ call pymode#default('g:pymode_rope', 1)
171
148
call pymode#default (' g:pymode_rope_completion' , 1 )
172
149
173
150
" Complete keywords from not imported modules (could make completion slower)
151
+ " Enable autoimport used modules
174
152
call pymode#default (' g:pymode_rope_autoimport' , 1 )
175
153
176
154
" Autoimported modules
@@ -185,7 +163,7 @@ call pymode#default('g:pymode_rope_completion_bind', '<C-Space>')
185
163
" Bind keys for goto definition (leave empty for disable)
186
164
call pymode#default (' g:pymode_rope_goto_definition_bind' , ' <C-c>g' )
187
165
188
- " set commend for open definition (e, new, vnew)
166
+ " set command for open definition (e, new, vnew)
189
167
call pymode#default (' g:pymode_rope_goto_definition_cmd' , ' new' )
190
168
191
169
" Bind keys for show documentation (leave empty for disable)
@@ -222,6 +200,9 @@ call pymode#default('g:pymode_rope_move_bind', '<C-c>rv')
222
200
" code to call it instead
223
201
call pymode#default (' g:pymode_rope_use_function_bind' , ' <C-c>ru' )
224
202
203
+ " Regenerate project cache on every save
204
+ call pymode#default (' g:pymode_rope_regenerate_on_write' , 1 )
205
+
225
206
" }}}
226
207
227
208
" }}}
255
236
256
237
endif
257
238
258
- com ! PymodeVersion echomsg " Pymode version: " . g: pymode_version . " interpreter: " . g: pymode_python . " lint: " . g: pymode_lint . " rope: " . g: pymode_rope
239
+ command ! PymodeVersion echomsg " Pymode version: " . g: pymode_version . " interpreter: " . g: pymode_python . " lint: " . g: pymode_lint . " rope: " . g: pymode_rope
259
240
260
241
augroup pymode
261
242
0 commit comments