Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/pymode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ python buffers: >
setlocal commentstring=#%s
setlocal define=^\s*\\(def\\\\|class\\)

Enable colorcolumn display at max_line_length *'g:pymode_options_colorcolumn'*
>
let g:pymode_options_colorcolumn = 1

Setup pymode |quickfix| window

*'g:pymode_quickfix_maxheight'* *'g:pymode_quickfix_minheight'*
Expand Down
2 changes: 1 addition & 1 deletion ftplugin/python/pymode.vim
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if g:pymode_options
endif
setlocal nowrap
exe "setlocal textwidth=" . g:pymode_options_max_line_length
if exists('+colorcolumn')
if g:pymode_options_colorcolumn && exists('+colorcolumn')
setlocal colorcolumn=+1
endif
setlocal commentstring=#%s
Expand Down
1 change: 1 addition & 0 deletions plugin/pymode.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ call pymode#default("g:pymode_trim_whitespaces", 1)
" Set recomended python options
call pymode#default("g:pymode_options", 1)
call pymode#default("g:pymode_options_max_line_length", 80)
call pymode#default("g:pymode_options_colorcolumn", 1)

" Minimal height of pymode quickfix window
call pymode#default('g:pymode_quickfix_maxheight', 6)
Expand Down