11" vi: fdl = 1
2- let g: pymode_version = " 0.6.19 "
2+ let g: pymode_version = " 0.7.0 "
33
44com ! PymodeVersion echomsg " Current python-mode version: " . g: pymode_version
55com ! PymodeTroubleshooting call pymode#troubleshooting#test ()
@@ -20,9 +20,6 @@ call pymode#default('g:pymode_python', 'python')
2020" Disable pymode warnings
2121call pymode#default (' g:pymode_warning' , 1 )
2222
23- " Modify sys.path for pymode modules loading
24- call pymode#default (' g:pymode_path' , 1 )
25-
2623" Additional python paths
2724call pymode#default (' g:pymode_paths' , [])
2825
@@ -45,6 +42,12 @@ call pymode#default("g:pymode_trim_whitespaces", 1)
4542" Set recomended python options
4643call pymode#default (" g:pymode_options" , 1 )
4744
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+
4851" LOAD VIRTUALENV {{{
4952"
5053" Enable virtualenv support
@@ -83,60 +86,34 @@ call pymode#default("g:pymode_lint_on_write", 1)
8386" Check code on fly
8487call pymode#default (" g:pymode_lint_on_fly" , 0 )
8588
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-
9889" 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 )
10091
10192" 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' ] )
10394
10495" Skip errors and warnings (e.g. E4,W)
10596call pymode#default (" g:pymode_lint_ignore" , " " )
10697
107- " Auto open cwindow if errors find
108- call pymode#default (" g:pymode_lint_cwindow" , 1 )
109-
11098" Select errors and warnings (e.g. E4,W)
11199call pymode#default (" g:pymode_lint_select" , " " )
112100
101+ " Auto open cwindow if any errors has been finded
102+ call pymode#default (" g:pymode_lint_cwindow" , 1 )
103+
113104" Place error signs
114105call pymode#default (" g:pymode_lint_signs" , 1 )
115106
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
120108call pymode#default (" g:pymode_lint_todo_symbol" , " WW" )
121-
122- " Comment symbol.
123109call pymode#default (" g:pymode_lint_comment_symbol" , " CC" )
124-
125- " Visual symbol.
126110call pymode#default (" g:pymode_lint_visual_symbol" , " RR" )
127-
128- " Error symbol.
129111call pymode#default (" g:pymode_lint_error_symbol" , " EE" )
130-
131- " Info symbol.
132112call pymode#default (" g:pymode_lint_info_symbol" , " II" )
133-
134- " PyFlakes' info symbol.
135113call pymode#default (" g:pymode_lint_pyflakes_symbol" , " FF" )
136114
137115if g: pymode_lint_signs && has (' signs' )
138116
139- " Signs definition
140117 execute ' sign define PymodeW text=' . g: pymode_lint_todo_symbol . " texthl=Todo"
141118 execute ' sign define PymodeC text=' . g: pymode_lint_comment_symbol . " texthl=Comment"
142119 execute ' sign define PymodeR text=' . g: pymode_lint_visual_symbol . " texthl=Visual"
@@ -158,7 +135,7 @@ call pymode#default('g:pymode_breakpoint', 1)
158135call pymode#default (' g:pymode_breakpoint_bind' , ' <leader>b' )
159136
160137" 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 ' , ' ' )
162139
163140" }}}
164141
@@ -171,6 +148,7 @@ call pymode#default('g:pymode_rope', 1)
171148call pymode#default (' g:pymode_rope_completion' , 1 )
172149
173150" Complete keywords from not imported modules (could make completion slower)
151+ " Enable autoimport used modules
174152call pymode#default (' g:pymode_rope_autoimport' , 1 )
175153
176154" Autoimported modules
@@ -185,7 +163,7 @@ call pymode#default('g:pymode_rope_completion_bind', '<C-Space>')
185163" Bind keys for goto definition (leave empty for disable)
186164call pymode#default (' g:pymode_rope_goto_definition_bind' , ' <C-c>g' )
187165
188- " set commend for open definition (e, new, vnew)
166+ " set command for open definition (e, new, vnew)
189167call pymode#default (' g:pymode_rope_goto_definition_cmd' , ' new' )
190168
191169" Bind keys for show documentation (leave empty for disable)
@@ -222,6 +200,9 @@ call pymode#default('g:pymode_rope_move_bind', '<C-c>rv')
222200" code to call it instead
223201call pymode#default (' g:pymode_rope_use_function_bind' , ' <C-c>ru' )
224202
203+ " Regenerate project cache on every save
204+ call pymode#default (' g:pymode_rope_regenerate_on_write' , 1 )
205+
225206" }}}
226207
227208" }}}
255236
256237endif
257238
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
259240
260241augroup pymode
261242
0 commit comments