Skip to content

Instantly share code, notes, and snippets.

@trevorc
Created June 27, 2012 17:33
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 trevorc/3005583 to your computer and use it in GitHub Desktop.
Save trevorc/3005583 to your computer and use it in GitHub Desktop.
set autowriteall
set backspace=indent,eol,start
set cinoptions=Ws,(0,t0
set directory=~/.config/vim/swap,/tmp
set encoding=utf-8
set expandtab
set formatoptions=q
set hidden
set hlsearch
set incsearch
set infercase
set laststatus=2
set list listchars+=tab:>-
set nocursorline
set nomodeline
set number
set report=0
set ruler
set runtimepath=~/.config/vim,$VIMRUNTIME
set shiftwidth=2
set shortmess+=asI
set smartindent
set smarttab
set softtabstop=4
set t_Co=256
set textwidth=72
set visualbell t_vb=
set wildmenu
colorscheme inkpot
filetype plugin indent on
syntax on
autocmd FileType c,cpp,java setlocal cindent shiftwidth=4
autocmd FileType make setlocal noexpandtab
autocmd FileType python setlocal shiftwidth=4
let c_no_curly_error = 1
let g:is_posix = 1
let java_highlight_all = 1
let python_highlight_all = 1
noremap _ <c-^>
noremap ( :bprevious<cr>
noremap ) :bnext<cr>
noremap <c-d> :q<cr>
noremap <c-_> :nohlsearch<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment