Created
October 19, 2016 13:37
-
-
Save ryotako/5ed8b9fa9dd61561ebe4ebecbe51f6d1 to your computer and use it in GitHub Desktop.
colorcolumnのトグル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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