Skip to content

Commit 2089fe9

Browse files
committed
Fix rope keys
1 parent 577a77c commit 2089fe9

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

Changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
## 2012-03-?? 0.6.0
4+
## 2012-03-13 0.6.0
55
-------------------
66
* Add 'pymode_lint_hold' option
77
* Improve pymode loading speed
@@ -12,6 +12,7 @@ Changelog
1212
* Fix rope keys
1313
* Fix python motion in visual mode
1414
* Add folding 'pymode_folding'
15+
* Warning: 'pymode_lint_checker' now set to 'pyflakes,pep8,mccabe' by default
1516

1617
## 2012-02-12 0.5.8
1718
-------------------

README.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Default values: ::
134134

135135
" Switch pylint, pyflakes, pep8, mccabe code-checkers
136136
" Can have multiply values "pep8,pyflakes,mcccabe"
137-
let g:pymode_lint_checker = "pylint"
137+
let g:pymode_lint_checker = "pyflakes,pep8,mccabe"
138138

139139
" Skip errors and warnings
140140
" E.g. "E501,W002", "E2,W" (Skip all Warnings and Errors startswith E2) and etc
@@ -329,6 +329,12 @@ Keys Command
329329
-------------- -------------
330330
**<C-Space>** Rope autocomplete (g:pymode_rope enabled)
331331
-------------- -------------
332+
**<C-c>g** Rope goto definition (g:pymode_rope enabled)
333+
-------------- -------------
334+
**<C-c>d** Rope show documentation (g:pymode_rope enabled)
335+
-------------- -------------
336+
**<C-c>f** Rope find occurrences (g:pymode_rope enabled)
337+
-------------- -------------
332338
**<Leader>r** Run python (g:pymode_run enabled)
333339
-------------- -------------
334340
**<Leader>b** Set, unset breakpoint (g:pymode_breakpoint enabled)
@@ -421,7 +427,7 @@ Development of pylint-mode happens at github: https://github.com/klen/python-mod
421427
Copyright
422428
=========
423429

424-
Copyright (C) 2011 Kirill Klenov (klen_)
430+
Copyright (C) 2012 Kirill Klenov (klen_)
425431

426432
**Rope**
427433
Copyright (C) 2006-2010 Ali Gholami Rudi

doc/pymode.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ If this option is set to 0 then pylint script is disabled.
152152
Values: "pylint", "pyflakes", "pep8", "mccabe"
153153
You can set many checkers. E.g. "pyflakes,pep8,mccabe" ~
154154

155-
Default: "pylint".
155+
Default: "pyflakes,pep8,mccabe".
156156

157157
This option set code checkers.
158158

ftplugin/python/pymode.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ endif
9696
if g:pymode_rope
9797

9898
" DESC: Set keys
99-
exe "noremap <silent> <buffer> " . g:pymode_rope_local_prefix . "g :RopeGotoDefinition<CR>"
100-
exe "noremap <silent> <buffer> " . g:pymode_rope_local_prefix . "d :RopeShowDoc<CR>"
101-
exe "noremap <silent> <buffer> " . g:pymode_rope_local_prefix . "f :RopeFindOccurrences<CR>"
102-
exe "noremap <silent> <buffer> " . g:pymode_rope_local_prefix . "m :emenu Rope . <TAB>"
99+
exe "noremap <silent> <buffer> " . g:pymode_rope_short_prefix . "g :RopeGotoDefinition<CR>"
100+
exe "noremap <silent> <buffer> " . g:pymode_rope_short_prefix . "d :RopeShowDoc<CR>"
101+
exe "noremap <silent> <buffer> " . g:pymode_rope_short_prefix . "f :RopeFindOccurrences<CR>"
102+
exe "noremap <silent> <buffer> " . g:pymode_rope_short_prefix . "m :emenu Rope . <TAB>"
103103
inoremap <silent> <buffer> <S-TAB> <C-R>=RopeLuckyAssistInsertMode()<CR>
104104
105105
let s:prascm = g:pymode_rope_always_show_complete_menu ? "<C-P>" : ""

plugin/pymode.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
6262
" OPTION: g:pymode_lint_message -- bool. Show current line error message
6363
call pymode#Default("g:pymode_lint_message", 1)
6464

65-
" OPTION: g:pymode_lint_checker -- str. Use pylint of pyflakes for check.
66-
call pymode#Default("g:pymode_lint_checker", "pylint")
65+
" OPTION: g:pymode_lint_checker -- str. Choices are: pylint, pyflakes, pep8, mccabe
66+
call pymode#Default("g:pymode_lint_checker", "pyflakes,pep8,mccabe")
6767

6868
" OPTION: g:pymode_lint_config -- str. Path to pylint config file
6969
call pymode#Default("g:pymode_lint_config", $HOME . "/.pylintrc")
@@ -197,6 +197,9 @@ if !pymode#Default("g:pymode_rope", 1) || g:pymode_rope
197197
" OPTION: g:pymode_rope_local_prefix -- string.
198198
call pymode#Default("g:pymode_rope_local_prefix", "<C-c>r")
199199

200+
" OPTION: g:pymode_rope_short_prefix -- string.
201+
call pymode#Default("g:pymode_rope_short_prefix", "<C-c>")
202+
200203
" OPTION: g:pymode_rope_vim_completion -- bool.
201204
call pymode#Default("g:pymode_rope_vim_completion", 1)
202205

0 commit comments

Comments
 (0)