David Blume commited on 2016-09-25 11:31:15
Showing 2 changed files, with 6 additions and 6 deletions.
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-" Version 2016-04-07.1 - OpenInOtherWindow() |
|
1 |
+" Version 2016-09-25.1 - php mods |
|
2 | 2 |
set nocompatible " Use Vim defaults, forget compatibility with vi. |
3 | 3 |
set bs=2 " allow backspacing over everything in insert mode |
4 | 4 |
set wildmenu " Allows command-line completion with tab |
... | ... |
@@ -186,13 +186,13 @@ if has("autocmd") |
186 | 186 |
autocmd BufWrite *.py :call DeleteTrailingWS() " Delete trailing whitespace |
187 | 187 |
" Don't let smartindent unindent the # character in Python files |
188 | 188 |
autocmd FileType python inoremap # X<c-h># |
189 |
- autocmd FileType c,cpp,python,brs set expandtab " Use spaces instead of tabs |
|
189 |
+ autocmd FileType c,cpp,python,php,brs set expandtab " Use spaces instead of tabs |
|
190 | 190 |
autocmd Filetype make setl noexpandtab " ...not for files that use tabs. |
191 | 191 |
|
192 | 192 |
" Use the vim command %retab before applying the following |
193 | 193 |
" two with files that have 8-space tabs. |
194 |
- autocmd FileType c,cpp,python set tabstop=4 |
|
195 |
- autocmd FileType c,cpp,python set shiftwidth=4 |
|
194 |
+ autocmd FileType c,cpp,python,php set tabstop=4 |
|
195 |
+ autocmd FileType c,cpp,python,php set shiftwidth=4 |
|
196 | 196 |
|
197 | 197 |
autocmd FileType python set foldmethod=indent " 'za' to fold |
198 | 198 |
autocmd FileType python set foldlevel=99 |
... | ... |
@@ -215,8 +215,6 @@ if has("autocmd") |
215 | 215 |
autocmd BufRead *.txt set wrap linebreak nolist " "soft" wrap of existing lines |
216 | 216 |
autocmd BufRead README set wrap linebreak nolist " "soft" wrap of existing lines |
217 | 217 |
|
218 |
- autocmd BufRead *.c,*.cpp,*.python,*.h,*.hpp,*.js set nowrap |
|
219 |
- |
|
220 | 218 |
" When editing a file, always jump to the last cursor position |
221 | 219 |
autocmd BufReadPost * |
222 | 220 |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | |
223 | 221 |