Skip to content

Instantly share code, notes, and snippets.

@paulc
Created December 27, 2011 22:09
Show Gist options
  • Save paulc/1525312 to your computer and use it in GitHub Desktop.
Save paulc/1525312 to your computer and use it in GitHub Desktop.
VIM Config
set nocompatible
set nomodeline
set hidden
set bs=2
set ai
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
set winminheight=0
set backup
set history=200
set ruler
set title
set laststatus=2
set ignorecase
set smartcase
set wildmenu
set wildmode=list:longest
set scrolloff=5
set backspace=indent,eol,start
set showbreak=...
set ttyfast
let mapleader = ","
runtime macros/matchit.vim
let g:netrw_liststyle=3
map <tab><tab> :tabn
map <s-tab><s-tab> :tabp
if has("gui")
set background=dark
colorscheme darkblue
syntax on
set transparency=10
set lines=45
set columns=120
" set guifont=Monaco:h11
" set printfont=Monaco:h8
set guifont=Menlo:h11
set printfont=Menlo:h8
set printoptions=syntax:y,number:y,wrap:y
set guioptions=-mr+e
elseif &t_Co > 2
set background=dark
colorscheme darkblue
syntax on
endif
hi TabLine ctermbg=blue ctermfg=grey guibg=green guifg=grey
hi TabLineSel ctermbg=blue ctermfg=red guibg=green guifg=yellow
hi TabLineFill ctermfg=blue guifg=green
filetype on
filetype plugin on
filetype indent on
if has("autocmd")
autocmd BufRead *.txt set tw=78
autocmd BufRead,BufNewFile *.go set syntax=go
augroup make
au!
autocmd FileType make set noexpandtab
augroup END
augroup cprog
au!
autocmd FileType c,cpp set formatoptions=croql cindent comments=sr:/*,mb:*,el:*/,://
augroup END
augroup html
au!
autocmd FileType html set tabstop=2
autocmd FileType html set shiftwidth=2
augroup END
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment