Skip to content

Commit 728067d

Browse files
committed
Version 0.5.1
1 parent 6b03c3d commit 728067d

5 files changed

Lines changed: 96 additions & 13 deletions

File tree

Changelog.rst

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

4+
## 2012-01-06 0.5.1
5+
-------------------
6+
* Happy new year!
7+
* Objects and motion fixes
8+
49
## 2011-11-30 0.5.0
510
-------------------
611
* Add python objects and motions (beta)

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ See (old) screencast here: http://t.co/3b0bzeXA (sorry for quality, this is my f
2828
Changelog
2929
=========
3030

31-
## 2011-11-30 0.5.0
31+
## 2012-01-06 0.5.1
3232
-------------------
33-
* Add python objects and motions (beta)
34-
:h pymode_motion
33+
* Happy new year!
34+
* Objects and motion fixes
3535

3636

3737
Requirements
@@ -211,7 +211,7 @@ Other stuff
211211

212212
Default values: ::
213213

214-
" Load motion plugin
214+
" Load python objects and motion
215215
let g:pymode_motion = 1
216216

217217
" Load breakpoints plugin

doc/pymode.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
*pymode.txt* *python-mode.txt* Python-mode for vim!
22

3+
____ _ _ ____ _ _ _____ _ _ __ __ _____ ____ ____ ~
4+
( _ \( \/ )(_ _)( )_( )( _ )( \( )___( \/ )( _ )( _ \( ___) ~
5+
)___/ \ / )( ) _ ( )(_)( ) ((___)) ( )(_)( )(_) ))__) ~
6+
(__) (__) (__) (_) (_)(_____)(_)\_) (_/\/\_)(_____)(____/(____) ~
7+
8+
9+
Version: 0.5.1
10+
311
==============================================================================
412
CONTENTS *Python-mode-contents*
513

@@ -321,6 +329,18 @@ K Show python docs for current word under cursor
321329
C-Space Rope code assist
322330
<leader>r Run current buffer
323331
<leader>b Set breakpoints
332+
[[ Jump on previous class or function (normal, visual, operator modes)
333+
]] 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)
324344
================ ============================
325345

326346
Note:
@@ -406,6 +426,11 @@ You may set |exrc| and |secure| in your |vimrc| for auto set custom settings fro
406426
The Python-mode is released under the GNU lesser general public license.
407427
See: http://www.gnu.org/copyleft/lesser.html
408428

429+
If you like this plugin, you can send me postcard :)
430+
My address is here: Russia, 143400, Krasnogorsk, Shkolnaya 1-19
431+
Thanks for support!
432+
433+
409434
------------------------------------------------------------------------------
410435

411436
vim:tw=78:ts=8:ft=help:norl:

ftplugin/python/pymode.vim

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ endif
7474
" }}}
7575

7676

77-
" PyLint
77+
" Lint {{{
78+
7879
if g:pymode_lint
7980

8081
" DESC: Set commands
@@ -90,7 +91,11 @@ if g:pymode_lint
9091

9192
endif
9293

93-
" Rope
94+
" }}}
95+
96+
97+
" Rope {{{
98+
9499
if g:pymode_rope
95100

96101
" DESC: Set keys
@@ -106,7 +111,11 @@ if g:pymode_rope
106111

107112
endif
108113

109-
" Run code
114+
" }}}
115+
116+
117+
" Execution {{{
118+
110119
if g:pymode_run
111120

112121
" DESC: Set commands
@@ -117,20 +126,27 @@ if g:pymode_run
117126

118127
endif
119128

120-
" Set breakpoints
129+
" }}}
130+
131+
132+
" Breakpoints {{{
133+
121134
if g:pymode_breakpoint
122135

123136
" DESC: Set keys
124137
exe "nnoremap <silent> <buffer> " g:pymode_breakpoint_key ":call pymode#breakpoint#Set(line('.'))<CR>"
125138

126139
endif
127140

128-
" OPTION: g:pymode_utils_whitespaces -- bool. Remove unused whitespaces on save
129-
call pymode#Default("g:pymode_utils_whitespaces", 1)
141+
" }}}
142+
143+
144+
" Utils {{{
130145

131-
" Utils whitespaces
132146
if g:pymode_utils_whitespaces
133147
au BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
134148
endif
135149

150+
" }}}
151+
136152
" vim: fdm=marker:fdl=0

plugin/pymode.vim

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let g:pymode_version = "0.5.0"
1+
let g:pymode_version = "0.5.1"
22

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

@@ -11,7 +11,7 @@ endif
1111
" DESC: Check python support
1212
if !has('python')
1313
echoerr expand("<sfile>:t") . " required vim compiled with +python."
14-
echoerr "Pymode pylint and rope plugins will be disabled."
14+
echoerr "Pymode rope, pylint and virtualenv plugins will be disabled."
1515
let g:pymode_lint = 0
1616
let g:pymode_rope = 0
1717
let g:pymode_path = 0
@@ -30,6 +30,9 @@ sys.path = [
3030
EOF
3131
endif
3232

33+
34+
" Lint {{{
35+
3336
if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
3437

3538
" OPTION: g:pymode_lint_write -- bool. Check code every save.
@@ -147,6 +150,11 @@ def pyflakes():
147150
EOF
148151
endif
149152

153+
" }}}
154+
155+
156+
" Breakpoints {{{
157+
150158
if !pymode#Default("g:pymode_breakpoint", 1) || g:pymode_breakpoint
151159

152160
" OPTION: g:pymode_breakpoint_key -- string. Key for set/unset breakpoint.
@@ -156,6 +164,11 @@ if !pymode#Default("g:pymode_breakpoint", 1) || g:pymode_breakpoint
156164

157165
endif
158166

167+
" }}}
168+
169+
170+
" Documentation {{{
171+
159172
if !pymode#Default("g:pymode_doc", 1) || g:pymode_doc
160173

161174
if !pymode#CheckProgram("pydoc", "or disable pymode_doc.")
@@ -167,12 +180,22 @@ if !pymode#Default("g:pymode_doc", 1) || g:pymode_doc
167180

168181
endif
169182

183+
" }}}
184+
185+
186+
" Virtualenv {{{
187+
170188
if !pymode#Default("g:pymode_virtualenv", 1) || g:pymode_virtualenv
171189

172190
call pymode#Default("g:pymode_virtualenv_enabled", [])
173191

174192
endif
175193

194+
" }}}
195+
196+
197+
" Execution {{{
198+
176199
if !pymode#Default("g:pymode_run", 1) || g:pymode_run
177200

178201
if !pymode#CheckProgram("python", "or disable pymode_run.")
@@ -184,6 +207,11 @@ if !pymode#Default("g:pymode_run", 1) || g:pymode_run
184207

185208
endif
186209

210+
" }}}
211+
212+
213+
" Rope {{{
214+
187215
if !pymode#Default("g:pymode_rope", 1) || g:pymode_rope
188216

189217
" OPTION: g:pymode_rope_auto_project -- bool. Auto open ropeproject
@@ -277,3 +305,12 @@ if !pymode#Default("g:pymode_rope", 1) || g:pymode_rope
277305
menu <silent> Rope.UseFunction :RopeUseFunction<CR>
278306

279307
endif
308+
309+
" }}}
310+
311+
312+
" OPTION: g:pymode_utils_whitespaces -- bool. Remove unused whitespaces on save
313+
call pymode#Default("g:pymode_utils_whitespaces", 1)
314+
315+
" vim: fdm=marker:fdl=0
316+

0 commit comments

Comments
 (0)