Skip to content

Commit 577a77c

Browse files
committed
Fix docs and readme.
1 parent 20c8a53 commit 577a77c

File tree

5 files changed

+46
-24
lines changed

5 files changed

+46
-24
lines changed

Changelog.rst

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

4-
## 2012-02-?? 0.6.0
4+
## 2012-03-?? 0.6.0
55
-------------------
66
* Add 'pymode_lint_hold' option
77
* Improve pymode loading speed
@@ -10,6 +10,8 @@ Changelog
1010
Ex. "pep8,pyflakes,mccabe"
1111
* Add 'pymode_lint_ignore' and 'pymode_lint_select' options
1212
* Fix rope keys
13+
* Fix python motion in visual mode
14+
* Add folding 'pymode_folding'
1315

1416
## 2012-02-12 0.5.8
1517
-------------------

README.rst

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ 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

1010
- Python objects and motion (]], 3[[, ]]M, vaC, viM, daC, ciM, ...)
11+
- Folding of python code
12+
- Virtualenv support
1113
- Highlight syntax errors
1214
- Highlight and auto fix unused imports
15+
- Many linters (pylint_, pyflakes_, ...) that can be run simultaneously
1316
- Strong code completion
1417
- Code refactoring
1518
- Python documentation
1619
- Run python code
1720
- Go to definition
1821
- Powerful customization
19-
- Virtualenv support
20-
- Many linters (pylint_, pyflakes_, ...) that can be run simultaneously
21-
- And more...
22+
- And more, more ...
2223

23-
See (old) screencast here: http://t.co/3b0bzeXA (sorry for quality, this is my first screencast)
24+
See (very old) screencast here: http://t.co/3b0bzeXA (sorry for quality, this is my first screencast)
2425

2526

2627
.. contents::
@@ -223,14 +224,38 @@ Default values: ::
223224
let g:pymode_rope_always_show_complete_menu = 0
224225

225226

226-
Other stuff
227-
-----------
227+
Automatically folding of python code
228+
--------------------------------------
228229

229230
Default values: ::
230231

231-
" Load python objects and motion
232+
" Enable python folding
233+
let g:pymode_folding = 1
234+
235+
236+
Vim python motions and operators
237+
--------------------------------
238+
239+
Default values: ::
240+
241+
" Enable python objects and motion
232242
let g:pymode_motion = 1
233243

244+
245+
Virtualenv support
246+
------------------
247+
248+
Default values: ::
249+
250+
" Auto fix vim python paths if virtualenv enabled
251+
let g:pymode_virtualenv = 1
252+
253+
254+
Other stuff
255+
-----------
256+
257+
Default values: ::
258+
234259
" Load breakpoints plugin
235260
let g:pymode_breakpoint = 1
236261

@@ -240,15 +265,9 @@ Default values: ::
240265
" Autoremove unused whitespaces
241266
let g:pymode_utils_whitespaces = 1
242267

243-
" Auto fix vim python paths if virtualenv enabled
244-
let g:pymode_virtualenv = 1
245-
246268
" Set default pymode python indent options
247269
let g:pymode_options_indent = 1
248270

249-
" Set default pymode python fold options
250-
let g:pymode_options_fold = 1
251-
252271
" Set default pymode python other options
253272
let g:pymode_options_other = 1
254273

autoload/pymode/doc.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
" Python-mode search by documentation
2+
3+
14
fun! pymode#doc#Show(word) "{{{
25
if a:word == ''
36
echoerr "No name/symbol under cursor!"
@@ -13,3 +16,6 @@ fun! pymode#doc#Show(word) "{{{
1316
wincmd p
1417
endif
1518
endfunction "}}}
19+
20+
21+
" vim: fdm=marker:fdl=0

autoload/pymode/lint.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function! pymode#lint#Check()
1+
fun! pymode#lint#Check()
22

33
if !g:pymode_lint | return | endif
44

doc/pymode.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ PythonMode. These options should be set in your vimrc.
8181

8282
|'pymode_rope'| Turns off rope script
8383

84+
|'pymode_folding'| Turns on/off python folding
85+
8486
|'pymode_breakpoint'| Turns off breakpoint script
8587

8688
|'pymode_breakpoint_key'| Key for breakpoint
@@ -96,9 +98,6 @@ PythonMode. These options should be set in your vimrc.
9698
|'pymode_options_indent'| Set default pymode options for
9799
python indentation
98100

99-
|'pymode_options_fold'| Set default pymode options for
100-
python folding
101-
102101
|'pymode_options_other'| Set default pymode options for
103102
python codding
104103

@@ -319,16 +318,12 @@ If this option is set to 1, pymode enable next options for python buffers: >
319318
setlocal autoindent
320319
<
321320
------------------------------------------------------------------------------
322-
*'pymode_options_fold'*
321+
*'pymode_folding'*
323322
Values: 0 or 1.
324323
Default: 1.
325324

326-
If this option is set to 1, pymode enable next options for python buffers: >
325+
If this option is set to 1, pymode enable python-folding.
327326

328-
setlocal foldlevelstart=99
329-
setlocal foldlevel=99
330-
setlocal foldmethod=indent
331-
<
332327
------------------------------------------------------------------------------
333328
*'pymode_options_other'*
334329
Values: 0 or 1.

0 commit comments

Comments
 (0)