Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Created August 31, 2015 22:02
Show Gist options
  • Save richardsondx/05d84047723de1dff28e to your computer and use it in GitHub Desktop.
Save richardsondx/05d84047723de1dff28e to your computer and use it in GitHub Desktop.
copy of Rowel ~/.vimrc
set nocompatible
set background=dark
" Vundle Plugins
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'pangloss/vim-javascript'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'terryma/vim-smooth-scroll'
Plugin 'kien/ctrlp.vim'
call vundle#end()
filetype plugin indent on
" Indent guides
"autocmd VimEnter * :IndentGuidesEnable
let g:indent_guides_auto_colors = 0
let g:indent_guides_guide_size = 1
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=black
" Whitespace
autocmd BufWritePre * :%s/\s\+$//e
set list
set listchars=tab:>-
" Disable autocomment
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Wrap cursor
set whichwrap+=<,>,h,l,[,]
" 80 character mark
set colorcolumn=80
" Char position
set ruler
" Search highlight
set hls
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files and backups
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Turn backup off
set nobackup
set nowb
set noswapfile
" Allow switching of buffers without saving
set hidden
set smartcase
set number
set title
set wrap!
syntax on
set nofoldenable
" Highlight JSON as JavaScript
au BufRead,BufNewFile *.json setfiletype javascript
" Tab widths
autocmd FileType * set tabstop=4|set shiftwidth=4
autocmd FileType ruby set tabstop=2|set shiftwidth=2
set expandtab
" Smooth mouse scroll
set mouse=a
map <ScrollWheelUp> <C-Y><C-Y>
map <ScrollWheelDown> <C-E><C-E>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment