Skip to content

Commit b8c9eec

Browse files
committed
Version 0.5.4
1 parent 8376359 commit b8c9eec

File tree

5 files changed

+53
-43
lines changed

5 files changed

+53
-43
lines changed

Changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
## 2012-01-17 0.5.4
5+
-------------------
6+
* Add a sign for info messages from pylint.
7+
(c) Fredrik Henrysson
8+
* Change motion keys: vic - viC, dam - daM and etc
9+
410
## 2012-01-09 0.5.3
511
-------------------
612
* Prevent the configuration from breaking python-mode

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ features like python code looking for bugs, refactoring and some other useful th
77
This plugin allow you create python code in vim very easily.
88
There is no need to install the pylint_, rope_ or any used python library on your system.
99

10-
- Python objects and motion (]], 3[[, ]]m, vac, vim, dac, cim, ...)
10+
- Python objects and motion (]], 3[[, ]]M, vaC, viM, daC, ciM, ...)
1111
- Highlight syntax errors
1212
- Highlight and auto fix unused imports
1313
- Strong code completion
@@ -301,17 +301,17 @@ Keys Command
301301
-------------- -------------
302302
]] Jump on next class or function (normal, visual, operator modes)
303303
-------------- -------------
304-
[m Jump on previous class or method (normal, visual, operator modes)
304+
[M Jump on previous class or method (normal, visual, operator modes)
305305
-------------- -------------
306-
]m Jump on next class or method (normal, visual, operator modes)
306+
]M Jump on next class or method (normal, visual, operator modes)
307307
-------------- -------------
308-
ac c Select a class. Ex: vac, dac, dc, yac, yc, cac, cc (normal, operator modes)
308+
aC C Select a class. Ex: vaC, daC, dC, yaC, yC, caC, cC (normal, operator modes)
309309
-------------- -------------
310-
ic Select inner class. Ex: vic, dic, yic, cic (normal, operator modes)
310+
iC Select inner class. Ex: viC, diC, yiC, ciC (normal, operator modes)
311311
-------------- -------------
312-
am m Select a function or method. Ex: vam, dam, dm, yam, ym, cam, cm (normal, operator modes)
312+
aM M Select a function or method. Ex: vaM, daM, dM, yaM, yM, caM, cM (normal, operator modes)
313313
-------------- -------------
314-
im Select inner function or method. Ex: vim, dim, yim, cim (normal, operator modes)
314+
iM Select inner function or method. Ex: viM, diM, yiM, ciM (normal, operator modes)
315315
============== =============
316316

317317
.. note:: See also ``:help ropevim.txt``

after/ftplugin/python.vim

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,34 @@ endif
99

1010
nnoremap <buffer> ]] :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', '')<CR>
1111
nnoremap <buffer> [[ :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', 'b')<CR>
12-
nnoremap <buffer> ]m :<C-U>call pymode#motion#move2('^\s*def\s', '')<CR>
13-
nnoremap <buffer> [m :<C-U>call pymode#motion#move2('^\s*def\s', 'b')<CR>
12+
nnoremap <buffer> ]C :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', '')<CR>
13+
nnoremap <buffer> [C :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', 'b')<CR>
14+
nnoremap <buffer> ]M :<C-U>call pymode#motion#move2('^\s*def\s', '')<CR>
15+
nnoremap <buffer> [M :<C-U>call pymode#motion#move2('^\s*def\s', 'b')<CR>
1416
1517
onoremap <buffer> ]] :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', '')<CR>
1618
onoremap <buffer> [[ :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', 'b')<CR>
17-
onoremap <buffer> ]m :<C-U>call pymode#motion#move2('^\s*def\s', '')<CR>
18-
onoremap <buffer> [m :<C-U>call pymode#motion#move2('^\s*def\s', 'b')<CR>
19+
onoremap <buffer> ]C :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', '')<CR>
20+
onoremap <buffer> [C :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', 'b')<CR>
21+
onoremap <buffer> ]M :<C-U>call pymode#motion#move2('^\s*def\s', '')<CR>
22+
onoremap <buffer> [M :<C-U>call pymode#motion#move2('^\s*def\s', 'b')<CR>
1923
2024
vnoremap <buffer> ]] :<C-U>call pymode#motion#vmove('^\(class\\|def\)\s', '')<CR>
2125
vnoremap <buffer> [[ :<C-U>call pymode#motion#vmove('^\(class\\|def\)\s', 'b')<CR>
22-
vnoremap <buffer> ]m :<C-U>call pymode#motion#vmove('^\s*def\s', '')<CR>
23-
vnoremap <buffer> [m :<C-U>call pymode#motion#vmove('^\s*def\s', 'b')<CR>
24-
25-
onoremap <buffer> c :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
26-
onoremap <buffer> ac :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
27-
onoremap <buffer> ic :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR>
28-
vnoremap <buffer> ac :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
29-
vnoremap <buffer> ic :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR>
30-
31-
onoremap <buffer> m :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
32-
onoremap <buffer> am :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
33-
onoremap <buffer> im :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR>
34-
vnoremap <buffer> am :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
35-
vnoremap <buffer> im :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR>
26+
vnoremap <buffer> ]M :<C-U>call pymode#motion#vmove('^\s*def\s', '')<CR>
27+
vnoremap <buffer> [M :<C-U>call pymode#motion#vmove('^\s*def\s', 'b')<CR>
28+
29+
onoremap <buffer> C :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
30+
onoremap <buffer> aC :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
31+
onoremap <buffer> iC :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR>
32+
vnoremap <buffer> aC :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
33+
vnoremap <buffer> iC :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR>
34+
35+
onoremap <buffer> M :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
36+
onoremap <buffer> aM :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
37+
onoremap <buffer> iM :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR>
38+
vnoremap <buffer> aM :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
39+
vnoremap <buffer> iM :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR>
3640
3741
endif
3842

doc/pymode.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(__) (__) (__) (_) (_)(_____)(_)\_) (_/\/\_)(_____)(____/(____) ~
77

88

9-
Version: 0.5.3
9+
Version: 0.5.4
1010

1111
==============================================================================
1212
CONTENTS *Python-mode-contents*
@@ -307,12 +307,12 @@ Key Command
307307
================ ============================
308308
[[ Jump on previous class or function (normal, visual, operator modes)
309309
]] Jump on next class or function (normal, visual, operator modes)
310-
[m Jump on previous class or method (normal, visual, operator modes)
311-
]m Jump on next class or method (normal, visual, operator modes)
312-
ac Select a class. Ex: vac, dac, yac, cac (normal, operator modes)
313-
ic Select inner class. Ex: vic, dic, yic, cic (normal, operator modes)
314-
am Select a function or method. Ex: vam, dam, yam, cam (normal, operator modes)
315-
im Select inner function or method. Ex: vim, dim, yim, cim (normal, operator modes)
310+
[M Jump on previous class or method (normal, visual, operator modes)
311+
]M Jump on next class or method (normal, visual, operator modes)
312+
aC Select a class. Ex: vaC, daC, yaC, caC (normal, operator modes)
313+
iC Select inner class. Ex: viC, diC, yiC, ciC (normal, operator modes)
314+
aM Select a function or method. Ex: vaM, daM, yaM, caM (normal, operator modes)
315+
iM Select inner function or method. Ex: viM, diM, yiM, ciM (normal, operator modes)
316316
================ ============================
317317

318318

@@ -331,16 +331,16 @@ C-Space Rope code assist
331331
<leader>b Set breakpoints
332332
[[ Jump on previous class or function (normal, visual, operator modes)
333333
]] Jump on next class or function (normal, visual, operator modes)
334-
[m Jump on previous class or method (normal, visual, operator modes)
335-
]m Jump on next class or method (normal, visual, operator modes)
336-
ac c Operation with a class.
337-
Ex: vac, dac, dc, yac, yc, cac, cc (normal, operator modes)
338-
ic Operation with inner class.
339-
Ex: vic, dic, yic, cic (normal, operator modes)
340-
am m Operation with function or method.
341-
Ex: vam, dam, dm, yam, ym, cam, cm (normal, operator modes)
342-
im Operation with inner function or method.
343-
Ex: vim, dim, yim, cim (normal, operator modes)
334+
[M Jump on previous class or method (normal, visual, operator modes)
335+
]M Jump on next class or method (normal, visual, operator modes)
336+
aC C Operation with a class.
337+
Ex: vaC, daC, dC, yaC, yC, caC, cC (normal, operator modes)
338+
iC Operation with inner class.
339+
Ex: viC, diC, yiC, ciC (normal, operator modes)
340+
aM M Operation with function or method.
341+
Ex: vaM, daM, dM, yaM, yM, caM, cM (normal, operator modes)
342+
iM Operation with inner function or method.
343+
Ex: viM, diM, yiM, ciM (normal, operator modes)
344344
================ ============================
345345

346346
Note:

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let g:pymode_version = "0.5.3"
1+
let g:pymode_version = "0.5.4"
22

33
com! PymodeVersion echomsg "Current python-mode version: " . g:pymode_version
44

0 commit comments

Comments
 (0)