Skip to content

Instantly share code, notes, and snippets.

@vpj
Created October 17, 2014 08:30
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 vpj/ca954139e55aa58e3368 to your computer and use it in GitHub Desktop.
Save vpj/ca954139e55aa58e3368 to your computer and use it in GitHub Desktop.
Programming setup
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set cursorcolumn
set ai nu bg=dark ts=1 sw=1 expandtab fdm=indent
set mouse=a
set hlsearch
colorscheme vividchalk
set cursorline
hi CursorLine term=bold cterm=bold guibg=Grey40
"Highlight long lines
"autocmd ColorScheme * highlight LongLines ctermbg=darkred guibg=darkred
"highlight LongLines ctermbg=darkred guibg=darkred
"match LongLines '\%>80v.\+'
"set textwidth=80
set colorcolumn=81
"autocmd ColorScheme * highlight ExtraWhitespace ctermbg=darkred guibg=darkred
highlight ExtraWhitespace ctermbg=darkred guibg=lightgreen
match ExtraWhitespace /\s\+\%#\@<!$/
match Error /\t/
au FileType python set sw=4 ts=4
au FileType c set cin
au FileType cpp set cin
autocmd BufWritePre * :%s/\s\+$//e
au BufRead,BufNewFile *.jsm setfiletype javascript
"au BufRead,BufNewFile *.less colorscheme torte
"colorscheme koehler
call pathogen#infect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment