Przeglądaj źródła

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

Lucas Stadler 13 lat temu
rodzic
commit
f6c0b59f83
1 zmienionych plików z 10 dodań i 7 usunięć
  1. 10 7
      .vimrc

+ 10 - 7
.vimrc

@ -20,17 +20,13 @@ set tabstop=3
20 20
set shiftwidth=3
21 21
set smarttab
22 22
set nopaste
23
set pastetoggle=<C-i>
23
set pastetoggle=<F12>
24 24
25 25
set number " With numbertoggle they're quite cool (I think)
26 26
27 27
" Copy indent of the last line.
28 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 30
" Keep a longer history
35 31
set history=1000
36 32
@ -42,6 +38,7 @@ set directory=~/.vim/tmp/
42 38
43 39
" Wrap lines in textfiles automatically.
44 40
" (Any way to enable in comments?)
41
set textwidth=72
45 42
au FileType text set textwidth=72
46 43
47 44
function! g:setTextWidthInComments()
@ -87,7 +84,6 @@ set scrolloff=1
87 84
88 85
"""
89 86
call pathogen#infect('~/t/vim/')
90
let g:ScreenImpl = 'Tmux'
91 87
let g:ctrlp_custom_ignore = {
92 88
	\ 'dir': '\.git$'
93 89
\ }
@ -101,10 +97,17 @@ let g:vimclojure#NailgunClient="/home/lu/t/vim/clojure/client/ng"
101 97
let g:vimclojure#WantNailgun=0
102 98
103 99
" soo beautiful! :)
104
let g:solarized_termtrans=1 " Somehow needed to make some places (empty space etc.) beautiful aswell
105 100
set background=dark
101
let g:solarized_termtrans  = 0
102
let g:solarized_termcolors = 16
106 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 111
set fileencodings=utf-8
109 112
110 113
" Automatically reread the file if it has been changed from the outside