Last active
March 9, 2016 03:53
-
-
Save catvec/9eee9b14eb39c505f0d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
" -- Auto reload vimrc | |
autocmd bufwritepost .vimrc source $MYVIMRC | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" -- Plugin manager | |
" -- git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
Plugin 'VundleVim/Vundle.vim' | |
" -- Basic defaults | |
Plugin 'git://github.com/tpope/vim-sensible.git' | |
" -- File tree | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
let g:NERDTreeIndicatorMapCustom = { | |
\ "Modified" : "✹", | |
\ "Staged" : "✚", | |
\ "Untracked" : "✭", | |
\ "Renamed" : "➜", | |
\ "Unmerged" : "═", | |
\ "Deleted" : "✖", | |
\ "Dirty" : "~", | |
\ "Clean" : "✔︎", | |
\ "Unknown" : "?" | |
\ } | |
" -- Golang | |
Plugin 'fatih/vim-go' | |
" -- Buffer explorer | |
Plugin 'bling/vim-bufferline' | |
" -- Base-16 theme | |
Plugin 'Noah-Huppert/base16-vim' | |
" -- Status line | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" -- Git integration | |
Plugin 'git://github.com/tpope/vim-fugitive.git' | |
" -- Buffer kill | |
Plugin 'qpkorr/vim-bufkill' | |
" -- Code completion | |
Plugin 'git://github.com/Valloric/YouCompleteMe' | |
call vundle#end() | |
filetype plugin indent on | |
" Line numbers | |
set number | |
set hidden | |
" Theme | |
colorscheme base16-default | |
set background=dark | |
let g:airline_theme='simple' | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#bufferline#enabled = 0 | |
" Keymaps | |
" -- Window navigation | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
" -- Buffer navigation | |
map <C-a> :bprevious<CR> | |
map <C-d> :bnext<CR> | |
" -- NERDTree | |
command! NERD NERDTree | |
command! NERDT NERDTreeToggle | |
" -- Spellcheck | |
setlocal spell! spelllang=en_us |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment