-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.before
36 lines (28 loc) · 870 Bytes
/
.vimrc.before
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
" Install https://github.com/junegunn/vim-plug before using below
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
set laststatus=2
" set rtp+=/home/kunal/Documents/tools/powerline/powerline/bindings/vim
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme='simple'
"let g:airline_solarized_bg='dark'
let g:airline_powerline_fonts = 1
" set t_Co=256
" let g:Powerline_symbols = "fancy"
function! s:CloseIfOnlyControlWinLeft()
if winnr("$") != 1
return
endif
if (exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1)
\ || &buftype == 'quickfix'
q
endif
endfunction
augroup CloseIfOnlyControlWinLeft
au!
au BufEnter * call s:CloseIfOnlyControlWinLeft()
augroup END
" Below is for https://github.com/ryanoasis/vim-devicons/issues/359
set t_RV=