.vimrc

branch
mhoward-lt
changeset 125
fcc2c5d32842
parent 124
1be15444e144
child 126
3ef2987526fe
equal deleted inserted replaced
123:52145be176c2 125:fcc2c5d32842
136 136
137 " General settings {{{ 137 " General settings {{{
138 syntax on 138 syntax on
139 filetype plugin indent on 139 filetype plugin indent on
140 140
141 set enc=utf-8 141 set encoding=utf-8
142 142
143 set hlsearch 143 set hlsearch
144 set ic smartcase 144 set ignorecase
145 set smartcase
145 146
146 if has('gui_running') || $LANG =~ 'UTF-8' 147 if has('gui_running') || $LANG =~ 'UTF-8'
147 set lcs=tab:⇥·,trail:· 148 set listchars=tab:⇥·,trail:·
148 " eol:↩ not as useful as trail i think 149 " eol:↩ not as useful as trail i think
149 set fillchars=fold:∷,vert:│ 150 set fillchars=fold:∷,vert:│
150 endif 151 endif
151 152
152 set ve=block 153 set virtualedit=block
153 154
154 set autoindent 155 set autoindent
155 set expandtab 156 set expandtab
156 set shiftwidth=2 157 set shiftwidth=2
157 set softtabstop=2 158 set softtabstop=2
158 159
159 set backspace=indent,eol,start 160 set backspace=indent,eol,start
160 161
161 "set nu 162 " set number
162 set scrolloff=2 163 set scrolloff=2
163 set ruler 164 set ruler
164 set showcmd 165 set showcmd
165 set wildmenu 166 set wildmenu
166 167
174 175
175 " Enable enhanced % matching in ruby 176 " Enable enhanced % matching in ruby
176 runtime macros/matchit.vim 177 runtime macros/matchit.vim
177 178
178 " Don't assume to scan includes when autocompleting 179 " Don't assume to scan includes when autocompleting
179 set cpt-=i 180 set complete-=i
180 181
181 " Never open with folds collapsed 182 " Never open with folds collapsed
182 set nofoldenable 183 set nofoldenable
183 184
184 set lbr 185 set linebreak
185 set sbr=»\ 186 set showbreak=»\
186 187
187 " Superseded by vim-airline 188 " Superseded by vim-airline
188 "set statusline=%f%m%r%h%w\ %y\ %=%l,%c\ %p%%\ %L 189 "set statusline=%f%m%r%h%w\ %y\ %=%l,%c\ %p%%\ %L
189 set laststatus=2 190 set laststatus=2
190 191
219 220
220 endif 221 endif
221 222
222 if on_windows == 1 223 if on_windows == 1
223 set guifont=DejaVu_Sans_Mono:h10:cDEFAULT 224 set guifont=DejaVu_Sans_Mono:h10:cDEFAULT
224 set lsp=0 225 set linespace=0
225 else 226 else
226 set guifont=DejaVu\ Sans\ Mono\ 10 227 set guifont=DejaVu\ Sans\ Mono\ 10
227 endif 228 endif
228 229
229 set guioptions-=T "disable toolbar and menu 230 set guioptions-=T "disable toolbar and menu
370 endif 371 endif
371 catch 372 catch
372 endtry 373 endtry
373 374
374 if has('gui_running') 375 if has('gui_running')
375 set nu 376 set number
376 set bg=dark 377 set background=dark
377 378
378 if on_windows == 1 379 if on_windows == 1
379 " generally have a tiling wm on linux 380 " generally have a tiling wm on linux
380 set columns=120 lines=40 381 set columns=120 lines=40
381 end 382 end

mercurial