Last active
August 29, 2015 14:08
-
-
Save likejazz/2dd98021bdd03641bb3b 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
.vim |
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 " 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