Skip to content

Instantly share code, notes, and snippets.

@mozkeeler
Created January 3, 2019 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mozkeeler/96e1ae03f5d699b0bb3ff91f14978cc4 to your computer and use it in GitHub Desktop.
Save mozkeeler/96e1ae03f5d699b0bb3ff91f14978cc4 to your computer and use it in GitHub Desktop.
colorscheme ron
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set scrolloff=5
hi ColorColumn guibg=#2d2d2d ctermbg=246
au BufNewFile,BufRead *.h set tw=80
au BufNewFile,BufRead *.h set colorcolumn=+1
au BufNewFile,BufRead *.cpp set tw=80
au BufNewFile,BufRead *.cpp set colorcolumn=+1
au BufNewFile,BufRead *.cc set tw=80
au BufNewFile,BufRead *.cc set colorcolumn=+1
au BufNewFile,BufRead *.c set tw=80
au BufNewFile,BufRead *.c set colorcolumn=+1
au BufNewFile,BufRead *.js set tw=100
au BufNewFile,BufRead *.js set colorcolumn=101
au BufNewFile,BufRead *.jsm set tw=80
au BufNewFile,BufRead *.jsm set colorcolumn=+1
au BufNewFile,BufRead *.jsm set filetype=javascript
au BufNewFile,BufRead *.go set filetype=go
au BufNewFile,BufRead *.rs set filetype=rust
au BufNewFile,BufRead *.rs set tw=100
au BufNewFile,BufRead *.rs set colorcolumn=101
au BufNewFile,BufRead *.py set tw=79
au BufNewFile,BufRead *.py set colorcolumn=80
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment