Last active
May 20, 2018 16:26
-
-
Save torbensky/d6fb3c3ee133ecfa6d1ad2e7ef5a0359 to your computer and use it in GitHub Desktop.
VIM RC File
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 | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
" Use neocomplete. | |
let g:neocomplete#enable_at_startup = 1 | |
" Use smartcase. | |
let g:neocomplete#enable_smart_case = 1 | |
set number " I like line numbers most of the time. use `:set number!` to toggle | |
set list " Show whitespace visibly | |
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:· " set the whitespace char types | |
" default indentation to 2 spaces | |
set ts=2 sts=2 sw=2 " tabstop 2, shiftwidth 2 | |
set expandtab | |
set updatetime=200 " delay until git gutter stuff shows | |
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
" let Vundle manage Vundle, required | |
Plug 'VundleVim/Vundle.vim' | |
Plug 'kien/ctrlp.vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'fatih/vim-go' | |
Plug 'Shougo/neocomplete.vim' | |
Plug 'tomasiser/vim-code-dark' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'tpope/vim-fugitive' | |
call plug#end() " required | |
map <C-n> :NERDTreeToggle<CR> " ctrl+n to open nerd tree | |
" setup nerdtree to open automatically when I just vim or vim a directory | |
" autocmd StdinReadPre * let s:std_in=1 | |
" autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif· | |
colorscheme codedark | |
" use the codedark airline theme | |
let g:airline_theme = 'codedark' | |
let g:gitgutter_max_signs = 500 " keep things snappy by limiting gutter signs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment