-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
executable file
·75 lines (62 loc) · 1.96 KB
/
vimrc
File metadata and controls
executable file
·75 lines (62 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
"Vundle Stuff
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/nerdtree'
Plugin 'fatih/vim-go'
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
call vundle#end()
syntax on
set fo=tcq
set background=dark
" Dark blue comments are not very readable on a dark terminal
highlight comment ctermfg=cyan
"Make the backspace behavior sane
set backspace=indent,eol,start
" Real tabs please, but make them smaller for Python
set tabstop=2
set softtabstop=2
set shiftwidth=2
set noexpandtab
" Let's make extra nonsense visible
highlight LiteralTabs ctermbg=darkgreen guibg=darkgreen
match LiteralTabs /\s\ /
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
match ExtraWhitespace /\s\+$/
" Other assorted awesomeness
set nocompatible laststatus=2 showcmd showmode
set incsearch ignorecase smartcase hlsearch
set magic
set shortmess+=I
"Reset filetypes in case the OS did something silly between startup and now
filetype off
filetype plugin indent on
" Git gutter colors
highlight clear SignColumn
highlight GitGutterChange ctermfg=3 ctermbg=0
highlight GitGutterDelete ctermfg=9 ctermbg=0
highlight GitGutterAdd ctermfg=2 ctermbg=0
highlight GitGutterChangeDelete ctermfg=4 ctermbg=0
" Airline settings
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline_enable_syntastic = 1
let g:airline_theme = 'powerlineish'
" NERDTree settings per github.com/scrooloose/nerdtree/issues/489
let g:NERDTreeDirArrows = 1
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
let g:NERDTreeGlyphReadOnly = "RO"
" Syntastic settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0