8000 Merge pull request #475 from dannon/develop · python-mode/python-mode@a05d77f · GitHub
[go: up one dir, main page]

Skip to content

Commit a05d77f

Browse files
committed
Merge pull request #475 from dannon/develop
Add option for disabling colorcolumn <nt>
2 parents 96cbc8d + 1ca4274 commit a05d77f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

doc/pymode.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ python buffers: >
115115
setlocal commentstring=#%s
116116
setlocal define=^\s*\\(def\\\\|class\\)
117117
118+
Enable colorcolumn display at max_line_length *'g:pymode_options_colorcolumn'*
119+
>
120+
let g:pymode_options_colorcolumn = 1
121+
118122
Setup pymode |quickfix| window
119123

120124
*'g:pymode_quickfix_maxheight'* *'g:pymode_quickfix_minheight'*

ftplugin/python/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if g:pymode_options
5959
endif
6060
setlocal nowrap
6161
exe "setlocal textwidth=" . g:pymode_options_max_line_length
62-
if exists('+colorcolumn')
62+
if g:pymode_options_colorcolumn && exists('+colorcolumn')
6363
setlocal colorcolumn=+1
6464
endif
6565
setlocal commentstring=#%s

plugin/pymode.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ call pymode#default("g:pymode_trim_whitespaces", 1)
4848
" Set recomended python options
4949
call pymode#default("g:pymode_options", 1)
5050
call pymode#default("g:pymode_options_max_line_length", 80)
51+
call pymode#default("g:pymode_options_colorcolumn", 1)
5152

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

0 commit comments

Comments
 (0)
0