-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
90 lines (67 loc) · 1.92 KB
/
.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
call plug#begin('~/.vim/bundle')
Plug 'chriskempson/base16-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'edkolev/tmuxline.vim'
Plug 'edkolev/promptline.vim'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'rickhowe/diffchar.vim'
call plug#end()
filetype plugin indent on
syntax on
set encoding=utf-8
" show all characters
set list
set listchars=tab:→·,trail:·,eol:¬
set number
"set relativenumber
set tabstop=2
set expandtab
set softtabstop=2
set shiftwidth=2
set laststatus=2
set autoindent
set scrolloff=4
set showcmd
set wildmenu
set wildmode=list:longest
"set visualbell
"set cursorline
set ttyfast
set undofile
set colorcolumn=80
set background=dark
set t_Co=256
set timeoutlen=500 ttimeoutlen=0
colorscheme base16-paraiso
" fix vimdiff colors
highlight DiffAdd ctermfg=NONE ctermbg=22
highlight DiffDelete ctermfg=NONE ctermbg=124
highlight DiffChange ctermfg=NONE ctermbg=22
highlight DiffText cterm=bold ctermfg=7 ctermbg=34
" highlight trailing whitespaces
highlight ExtraWhitespace ctermbg=09
match ExtraWhitespace /\s\+$/
" NERDTree toggle with <C-n>
nnoremap <C-n> :NERDTreeToggle<CR>
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" use CtrlP with ag
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
endif
" vim-airline
let g:airline_powerline_fonts=1
let g:airline_theme='base16_paraiso'
let g:airline#extensions#tmuxline#enabled = 0
let g:airline#extensions#tabline#enabled = 1
command! -bang -nargs=* Find call fzf#vim#grep('grep --line-number --ignore-case --recursive --exclude=".git/*" --color="always" '.shellescape(<q-args>), 0, <bang>0)
" transparent bg
highlight Normal ctermbg=none