Skip to content

Instantly share code, notes, and snippets.

@ryotako
Created October 19, 2016 13:37
Show Gist options
  • Save ryotako/5ed8b9fa9dd61561ebe4ebecbe51f6d1 to your computer and use it in GitHub Desktop.
Save ryotako/5ed8b9fa9dd61561ebe4ebecbe51f6d1 to your computer and use it in GitHub Desktop.
colorcolumnのトグル
" 80文字範囲外塗りつぶしのオンオフ
function! s:ToggleMargin()
let value = &colorcolumn
if strlen(value)
set colorcolumn=""
set colorcolumn?
else
execute "set colorcolumn=".join(range(&textwidth+1, 999), ',')
echo " colorcolumn=81..."
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment