8000 Add option for disabling colorcolumn <nt> by dannon · Pull Request #475 · python-mode/python-mode · GitHub
[go: up one dir, main page]

Skip to content

Add option for disabling colorcolumn <nt> #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2014
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
0