Skip to content

Instantly share code, notes, and snippets.

@nikhan
Last active January 3, 2017 19:18
Show Gist options
  • Save nikhan/082a0daed6fc39846db159c99bbeae76 to your computer and use it in GitHub Desktop.
Save nikhan/082a0daed6fc39846db159c99bbeae76 to your computer and use it in GitHub Desktop.
.vimrc 12-31-2016
" colors
set t_Co=256
set t_ut=
execute pathogen#infect()
syntax on
filetype plugin indent on
colorscheme 16color
set nu
set shiftwidth=2
set tabstop=2
set expandtab
set laststatus=2
set cursorline
set hidden
let g:go_fmt_command = "goimports"
" for immediate transition in/out of insert mode
set timeoutlen=1000 ttimeoutlen=0
" webpack
set backupcopy=yes
" remove startup screen
set shortmess=I
" Set the vertical split character to a space (there is a single space after
" '\ ')
set fillchars+=vert:\
" format C files, winsaveview() to return to our cursor/view
au BufWritePre *.c,*.cc,*.cpp,*.h let winview=winsaveview() | silent execute '%!clang-format-3.5 -style Google' | call winrestview(winview)
au BufRead,BufNewFile *.md set wrap linebreak nolist textwidth=80
\ wrapmargin=0 spell cc=80 syntax=off cursorline!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment