Created
June 20, 2014 15:51
-
-
Save rjz/f987f97c3f6146f1243f to your computer and use it in GitHub Desktop.
Vim text-wrapping and border
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
" Set text wrapping at the specified column | |
function Widthifier(col) | |
let &l:textwidth=a:col | |
let &l:colorcolumn=a:col+1 | |
let &l:tw=a:col | |
endfunction | |
" line @ 80 chars for js/coffee files | |
autocmd bufreadpre *.js call Widthifier(80) | |
autocmd bufreadpre *.coffee call Widthifier(80) | |
" pick your favorite color | |
highlight ColorColumn ctermbg=238 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment