1
1
" vi: fdl = 1
2
2
let g: pymode_version = " 0.13.0"
3
3
4
+
4
5
" Enable pymode by default :)
5
6
call pymode#default (' g:pymode' , 1 )
6
7
call pymode#default (' g:pymode_debug' , 0 )
@@ -182,6 +183,7 @@ call pymode#default('g:pymode_breakpoint_cmd', '')
182
183
"
183
184
" Rope support
184
185
call pymode#default (' g:pymode_rope' , 0 )
186
+ call pymode#default (' g:pymode_rope_prefix' , ' <C-c>' )
185
187
186
188
" System plugin variable
187
189
if g: pymode_rope
@@ -210,7 +212,7 @@ if g:pymode_rope
210
212
call pymode#default (' g:pymode_rope_autoimport_modules' , [' os' , ' shutil' , ' datetime' ])
211
213
212
214
" Bind keys to autoimport module for object under cursor
213
- call pymode#default (' g:pymode_rope_autoimport_bind' , ' <C-c> ra' )
215
+ call pymode#default (' g:pymode_rope_autoimport_bind' , g: pymode_rope_prefix . ' ra' )
214
216
215
217
" Automatic completion on dot
216
218
call pymode#default (' g:pymode_rope_complete_on_dot' , 1 )
@@ -219,56 +221,57 @@ if g:pymode_rope
219
221
call pymode#default (' g:pymode_rope_completion_bind' , ' <C-Space>' )
220
222
221
223
" Bind keys for goto definition (leave empty for disable)
222
- call pymode#default (' g:pymode_rope_goto_definition_bind' , ' <C-c>g' )
224
+ " call pymode#default('g:pymode_rope_goto_definition_bind', g:pymode_rope_prefix . 'g')
225
+ call pymode#default (' g:pymode_rope_goto_definition_bind' , g: pymode_rope_prefix . ' g' )
223
226
224
227
" set command for open definition (e, new, vnew)
225
228
call pymode#default (' g:pymode_rope_goto_definition_cmd' , ' new' )
226
229
227
230
" Bind keys for show documentation (leave empty for disable)
228
- call pymode#default (' g:pymode_rope_show_doc_bind' , ' <C-c> d' )
231
+ call pymode#default (' g:pymode_rope_show_doc_bind' , g: pymode_rope_prefix . ' d' )
229
232
230
233
" Bind keys for find occurencies (leave empty for disable)
231
- call pymode#default (' g:pymode_rope_find_it_bind' , ' <C-c> f' )
234
+ call pymode#default (' g:pymode_rope_find_it_bind' , g: pymode_rope_prefix . ' f' )
232
235
233
236
" Bind keys for organize imports (leave empty for disable)
234
- call pymode#default (' g:pymode_rope_organize_imports_bind' , ' <C-c> ro' )
237
+ call pymode#default (' g:pymode_rope_organize_imports_bind' , g: pymode_rope_prefix . ' ro' )
235
238
236
239
" Bind keys for rename variable/method/class in the project (leave empty for disable)
237
- call pymode#default (' g:pymode_rope_rename_bind' , ' <C-c> rr' )
240
+ call pymode#default (' g:pymode_rope_rename_bind' , g: pymode_rope_prefix . ' rr' )
238
241
239
242
" Bind keys for rename module
240
- call pymode#default (' g:pymode_rope_rename_module_bind' , ' <C-c> r1r' )
243
+ call pymode#default (' g:pymode_rope_rename_module_bind' , g: pymode_rope_prefix . ' r1r' )
241
244
242
245
" Bind keys for convert module to package
243
- call pymode#default (' g:pymode_rope_module_to_package_bind' , ' <C-c> r1p' )
246
+ call pymode#default (' g:pymode_rope_module_to_package_bind' , g: pymode_rope_prefix . ' r1p' )
244
247
245
248
" Creates a new function or method (depending on the context) from the selected lines
246
- call pymode#default (' g:pymode_rope_extract_method_bind' , ' <C-c> rm' )
249
+ call pymode#default (' g:pymode_rope_extract_method_bind' , g: pymode_rope_prefix . ' rm' )
247
250
248
251
" Creates a variable from the selected lines
249
- call pymode#default (' g:pymode_rope_extract_variable_bind' , ' <C-c> rl' )
252
+ call pymode#default (' g:pymode_rope_extract_variable_bind' , g: pymode_rope_prefix . ' rl' )
250
253
251
254
" Inline refactoring
252
- call pymode#default (' g:pymode_rope_inline_bind' , ' <C-c> ri' )
255
+ call pymode#default (' g:pymode_rope_inline_bind' , g: pymode_rope_prefix . ' ri' )
253
256
254
257
" Move refactoring
255
- call pymode#default (' g:pymode_rope_move_bind' , ' <C-c> rv' )
258
+ call pymode#default (' g:pymode_rope_move_bind' , g: pymode_rope_prefix . ' rv' )
256
259
257
260
" Generate function
258
- call pymode#default (' g:pymode_rope_generate_function_bind' , ' <C-c> rnf' )
261
+ call pymode#default (' g:pymode_rope_generate_function_bind' , g: pymode_rope_prefix . ' rnf' )
259
262
260
263
" Generate class
261
- call pymode#default (' g:pymode_rope_generate_class_bind' , ' <C-c> rnc' )
264
+ call pymode#default (' g:pymode_rope_generate_class_bind' , g: pymode_rope_prefix . ' rnc' )
262
265
263
266
" Generate package
264
- call pymode#default (' g:pymode_rope_generate_package_bind' , ' <C-c> rnp' )
267
+ call pymode#default (' g:pymode_rope_generate_package_bind' , g: pymode_rope_prefix . ' rnp' )
265
268
266
269
" Change signature
267
- call pymode#default (' g:pymode_rope_change_signature_bind' , ' <C-c> rs' )
270
+ call pymode#default (' g:pymode_rope_change_signature_bind' , g: pymode_rope_prefix . ' rs' )
268
271
269
272
" Tries to find the places in which a function can be used and changes the
270
273
" code to call it instead
271
- call pymode#default (' g:pymode_rope_use_function_bind' , ' <C-c> ru' )
274
+ call pymode#default (' g:pymode_rope_use_function_bind' , g: pymode_rope_prefix . ' ru' )
272
275
273
276
" Regenerate project cache on every save
274
277
call pymode#default (' g:pymode_rope_regenerate_on_write' , 1 )
0 commit comments