-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
53 lines (42 loc) · 1.3 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
" 80 characters line
set colorcolumn=81
" "execute "set colorcolumn=" . join(range(81,335), ',')
highlight ColorColumn ctermbg=Black ctermfg=DarkRed
" Highlight trailing spaces
" " http://vim.wikia.com/wiki/Highlight_unwanted_spaces
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
set t_Co=256
syntax on
" Show line numbers
set number
" Show file stats
set ruler
" Encoding
set encoding=utf-8
set tags=./tags,tags;
set list lcs=tab:\|\
" Enable NERDTree
"autocmd vimenter * NERDTree
syntax enable
set background=dark
let g:solarized_termcolors=256
" colorscheme solarized
colorscheme molokai
" let g:molokai_original = 1
" set statusline theme https://github.com/vim-airline/vim-airline-themes
let g:airline_theme='simple'
" Color scheme (terminal)
" set background=dark
" let g:solarized_termcolors=256
" let g:solarized_termtrans=1
" set path for fzf
set rtp+=~/.fzf
" Tagbar keybindings
nmap <silent> <F9> :TagbarToggle<CR>
nmap <silent> <F8> :TagbarClose<CR>:let g:tagbar_left = 1<CR>:TagbarOpen<CR>
nmap <silent> <F10> :TagbarClose<CR>:let g:tagbar_left = 0<CR>:TagbarOpen<CR>