Skip to content

Instantly share code, notes, and snippets.

@cr0sh
Last active March 26, 2016 02:53
Show Gist options
  • Save cr0sh/5ae4eec7140c14245227 to your computer and use it in GitHub Desktop.
Save cr0sh/5ae4eec7140c14245227 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set hlsearch
set scrolloff=3
set nobackup
set noswapfile
set bs=eol,start,indent
set autoread
set smarttab
" set smartindent
set smartcase
set showmatch
set ruler
set incsearch
set guioptions=M
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
if has("syntax")
syntax on
endif
set autoindent
set ts=4
set sts=4
set nu
set ruler
colorscheme jellybeans
set shiftwidth=4
set laststatus=2
set statusline=\ %<%l:v\ [%p]%=%a\ %h%m%r\ %F\
set rtp+=~/.vim/bundle/Vundle.vim
set linespace=2 " Fix underscore displayed as whitespace
au CompleteDone * pclose
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'The-NERD-tree'
Plugin 'vim-go'
call vundle#end()
filetype plugin indent on
map <F3> :NERDTreeToggle<CR>
imap <C-g> <Esc>:GoDef<CR>
nmap <C-a> :GoImports<CR>
nmap <C-q> :GoFmt<CR>
let $GOPATH = '/home/cr0sh/go'
let $GOROOT = '/usr/lib/go'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment