Skip to content

Instantly share code, notes, and snippets.

@Slabity
Last active August 29, 2015 13:57
Show Gist options
  • Save Slabity/9542585 to your computer and use it in GitHub Desktop.
Save Slabity/9542585 to your computer and use it in GitHub Desktop.
Personal Vimrc file
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Bundle 'gmarik/vundle'
Bundle 'flazz/vim-colorschemes'
Bundle 'wincent/Command-T'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on
syntax enable
set background=dark
colorscheme desert
set laststatus=2
set shortmess=aoOW
set showcmd
set undolevels=1000
set undoreload=-1
set number
set cursorline
set showmatch
set matchpairs+=<:>
set hlsearch
set incsearch
set scrolloff=15
set list
set listchars=tab:::,trail:.,extends:#,nbsp:.
set textwidth=80
set colorcolumn=+1
hi ColorColumn ctermbg=black
set nowrap
set smartindent
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set pastetoggle=<F12>
" Use tabs for makefiles.
au FileType make set noexpandtab
au BufWritePre <buffer> :call setline(1, map(getline(1,"$"), 'substitute(v:val, "\\s\\+$","","")'))
let mapleader=","
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment