Просмотр исходного кода

~/.vimrc: Fix color display in tmux (when using solarized).

Lucas Stadler лет назад: 13
Родитель
Сommit
f6c0b59f83
1 измененных файлов с 10 добавлено и 7 удалено
  1. 10 7
      .vimrc

+ 10 - 7
.vimrc

20
set shiftwidth=3
20
set shiftwidth=3
21
set smarttab
21
set smarttab
22
set nopaste
22
set nopaste
23
set pastetoggle=<C-i>
23
set pastetoggle=<F12>
24
24
25
set number " With numbertoggle they're quite cool (I think)
25
set number " With numbertoggle they're quite cool (I think)
26
26
27
" Copy indent of the last line.
27
" Copy indent of the last line.
28
set copyindent
28
set copyindent
29
29
30
" Show whitespace
31
set list listchars=tab:»·,trail:·,eol:¶
32
"au BufNewFile,BufRead *.{c,h} set listchars=tab:\ \ ,trail:·
33
34
" Keep a longer history
30
" Keep a longer history
35
set history=1000
31
set history=1000
36
32
42
38
43
" Wrap lines in textfiles automatically.
39
" Wrap lines in textfiles automatically.
44
" (Any way to enable in comments?)
40
" (Any way to enable in comments?)
41
set textwidth=72
45
au FileType text set textwidth=72
42
au FileType text set textwidth=72
46
43
47
function! g:setTextWidthInComments()
44
function! g:setTextWidthInComments()
87
84
88
"""
85
"""
89
call pathogen#infect('~/t/vim/')
86
call pathogen#infect('~/t/vim/')
90
let g:ScreenImpl = 'Tmux'
91
let g:ctrlp_custom_ignore = {
87
let g:ctrlp_custom_ignore = {
92
	\ 'dir': '\.git$'
88
	\ 'dir': '\.git$'
93
\ }
89
\ }
101
let g:vimclojure#WantNailgun=0
97
let g:vimclojure#WantNailgun=0
102
98
103
" soo beautiful! :)
99
" soo beautiful! :)
104
let g:solarized_termtrans=1 " Somehow needed to make some places (empty space etc.) beautiful aswell
105
set background=dark
100
set background=dark
101
let g:solarized_termtrans  = 0
102
let g:solarized_termcolors = 16
106
colorscheme solarized
103
colorscheme solarized
107
104
105
" Show whitespace
106
set list
107
set listchars=tab:→\ ,trail:·,eol:¬
108
"highlight SpecialKey ctermfg=10 ctermbg=8
109
"highlight NonText ctermfg=10 ctermbg=8
110
108
set fileencodings=utf-8
111
set fileencodings=utf-8
109
112
110
" Automatically reread the file if it has been changed from the outside
113
" Automatically reread the file if it has been changed from the outside