Last active
March 26, 2016 02:53
-
-
Save cr0sh/5ae4eec7140c14245227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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