-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
36 lines (26 loc) · 920 Bytes
/
vimrc
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
set nocp
set tabpagemax=100
source ~/.vim/autoload/pathogen.vim
execute pathogen#infect()
"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
syntax on
let g:ackprg = 'ag --nogroup --nocolor --column'
set runtimepath^=~/.vim/bundle/ag
set runtimepath^=~/.vim/bundle/tcomment_vim
"for NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
map <F2> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
colorscheme Crystallite
set laststatus=2
set statusline+=%{fugitive#statusline()}
set statusline+=[%F]
set statusline+=[%{strftime(\"%m/%d/%y\ -\ %H:%M\")}]