Skip to content

Instantly share code, notes, and snippets.

@jpweber
Created January 9, 2019 22:21
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 jpweber/2202230b8100013ff748134009beb9fc to your computer and use it in GitHub Desktop.
Save jpweber/2202230b8100013ff748134009beb9fc to your computer and use it in GitHub Desktop.
" install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'maralla/completor.vim'
Plug 'nsf/gocode', { 'rtp': 'vim', 'do': '~/.vim/plugins/gocode/vim/symlink.sh' }
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set tabstop=4
set softtabstop=4 " use spaces instead of tabs.
set smarttab " let's tab key insert 'tab stops', and bksp deletes tabs.
set autoindent " auto indenting
" file specific tab
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 softtabstop=2
set number " line numbers
set nobackup " get rid of anoying ~file
" Make search more sane
set ignorecase " case insensitive search
set smartcase " If there are uppercase letters, become case-sensitive.
set incsearch " live incremental searching
set showmatch " live match highlighting
set hlsearch " highlight matches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment