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 |