Skip to content

Instantly share code, notes, and snippets.

@likejazz
Last active August 29, 2015 14:08
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 likejazz/2dd98021bdd03641bb3b to your computer and use it in GitHub Desktop.
Save likejazz/2dd98021bdd03641bb3b to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'rust-lang/rust.vim'
Plug 'fatih/vim-go'
" the silver searcher
Plug 'rking/ag.vim'
call plug#end()
filetype plugin indent on " required
" ---
" colors
colorscheme badwolf " awesome colorscheme
syntax enable " enable syntax processing
" spaces & tabs
set expandtab " tabs are spaces
set shiftwidth=2
set softtabstop=2 " number of spaces in tab when editing
"set list
" ui config
set number " show line numbers
set cursorline " highlight current line
set showcmd " show command in bottom bar
set wildmenu " visual autocomplete for command menu
set lazyredraw " redraw only when we need to.
set showmatch " highlight matching [{()}]
" folding
set foldenable " enable folding
set foldlevelstart=10 " open most folds by default
set foldnestmax=10 " 10 nested fold max
set foldmethod=indent " fold based on indent level
"set foldlevel=1
" searching
set incsearch " search as characters are entered
set hlsearch " highlight matches
" status
set laststatus=2
set ruler
" misc
nnoremap <leader>. :CtrlPTag<cr>
nnoremap \ :Ag<SPACE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment