Skip to content

Instantly share code, notes, and snippets.

@cpgillem
Last active September 20, 2015 17:31
Show Gist options
  • Select an option

  • Save cpgillem/dc8a516dfb2ab49986ea to your computer and use it in GitHub Desktop.

Select an option

Save cpgillem/dc8a516dfb2ab49986ea to your computer and use it in GitHub Desktop.
My Vimrc for all my Unix OSs
" Basic Settings
set shell=bash
filetype plugin indent off
" Plugins Through VimPlug
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/syntastic'
Plug 'kien/ctrlp.vim'
Plug 'fatih/vim-go'
Plug 'rjohnsondev/vim-compiler-go'
Plug 'vim-jp/vim-go-extra'
Plug 'dgryski/vim-godef'
call plug#end()
" NERDTRee Settings
" Map Ctrl+N to toggle the NerdTree.
map <C-n> :NERDTreeToggle<CR>
" Syntastic Settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" " Disable for HTML because of templates
let syntastic_mode_map = { 'passive_filetypes': ['html'] }
" Vim-Go-Extra Settings
" Format on every save.
autocmd FileType go autocmd BufWritePre <buffer> Fmt
" DEPRECATED
" set tabstop=4 shiftwidth=4 expandtab
" General Settings
filetype plugin indent on
syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment