Skip to content

Commit 6ef7676

Browse files
committed
set colorcolumn
1 parent d034a6a commit 6ef7676

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

syntax/pandoc.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ endif
108108
if !exists("g:pandoc#syntax#protect#codeblocks")
109109
let g:pandoc#syntax#protect#codeblocks = 1
110110
endif
111+
" use color column? {{{2
112+
if !exists("g:pandoc#syntax#colorcolumn")
113+
let g:pandoc#syntax#colorcolumn = 0
114+
endif
111115
" }}}2
112116
" }}}
113117

@@ -573,3 +577,7 @@ let b:current_syntax = "pandoc"
573577

574578
syntax sync clear
575579
syntax sync minlines=100
580+
581+
if g:pandoc#syntax#colorcolumn == 1
582+
exe "setlocal colorcolumn=".string(&textwidth+5)
583+
endif

0 commit comments

Comments
 (0)