Skip to content

Commit 5499cc7

Browse files
committed
Version 0.2.20
1 parent 43de3c9 commit 5499cc7

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

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+
## 2011-10-25 0.2.20
5+
--------------------
6+
* Add g:pymode_lint_minheight and g:pymode_lint_maxheight
7+
options
8+
49
## 2011-10-21 0.2.12
510
--------------------
611
* Auto open cwindow with results

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ Default values: ::
9898
" Place error signs
9999
let g:pymode_lint_signs = 1
100100

101+
" Minimal height of pylint error window
102+
let g:pymode_lint_minheight = 3
103+
104+
" Maximal height of pylint error window
105+
let g:pymode_lint_maxheight = 6
106+
101107
.. note::
102108
Pylint options (ex. disable messages) may be defined in '$HOME/pylint.rc'
103109
See pylint documentation.

after/plugin/pymode_lint.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ call helpers#SafeVar("g:pymode_lint_config", string($HOME . "/.pylintrc"))
2222
" OPTION: g:pymode_lint_jump -- int. Jump on first error.
2323
call helpers#SafeVar("g:pymode_lint_jump", 0)
2424

25+
" OPTION: g:pymode_lint_minheight -- int. Minimal height of pymode lint window
26+
call helpers#SafeVar("g:pymode_lint_minheight", 3)
27+
28+
" OPTION: g:pymode_lint_maxheight -- int. Maximal height of pymode lint window
29+
call helpers#SafeVar("g:pymode_lint_maxheight", 6)
30+
2531
" DESC: Signs definition
2632
sign define W text=WW texthl=Todo
2733
sign define C text=CC texthl=Comment
@@ -86,6 +92,7 @@ function! pymode_lint#Lint()
8692
" Open cwindow
8793
if g:pymode_lint_cwindow && len(b:qf_list)
8894
botright cwindow
95+
exe max([min([line("$"), g:pymode_lint_maxheight]), g:pymode_lint_maxheight]) . "wincmd _"
8996
if g:pymode_lint_jump
9097
cc
9198
endif

doc/pymode.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ PythonMode. These options should be set in your vimrc.
5656

5757
|'pymode_lint_jump'| Auto jump on first error
5858

59+
|'pymode_lint_minheight'| Minimal height of pylint error window
60+
61+
|'pymode_lint_maxheight'| Maximal height of pylint error window
62+
5963
|'pymode_rope'| Turns off rope script
6064

6165
|'pymode_breakpoint'| Turns off breakpoint script
@@ -155,6 +159,20 @@ Default: 0.
155159

156160
If this option is set to 0 then pylint not jump on first error.
157161

162+
------------------------------------------------------------------------------
163+
*'pymode_lint_minheight'*
164+
Values: int
165+
Default: 3.
166+
167+
Set minimal height for pylint cwindow
168+
169+
------------------------------------------------------------------------------
170+
*'pymode_lint_maxheight'*
171+
Values: int
172+
Default: 6.
173+
174+
Set maximal height for pylint cwindow
175+
158176
------------------------------------------------------------------------------
159177
*'pymode_rope'*
160178
Values: 0 or 1.

0 commit comments

Comments
 (0)