Lines 154-160
Link Here
|
154 |
" Better to emerge app-vim/gentoo-syntax, which provides full syntax, |
154 |
" Better to emerge app-vim/gentoo-syntax, which provides full syntax, |
155 |
" filetype and indent settings for all things Gentoo. |
155 |
" filetype and indent settings for all things Gentoo. |
156 |
au BufRead,BufNewFile *.e{build,class} let is_bash=1|setfiletype sh |
156 |
au BufRead,BufNewFile *.e{build,class} let is_bash=1|setfiletype sh |
157 |
au BufRead,BufNewFile *.e{build,class} set ts=4 sw=4 noexpandtab |
157 |
au BufRead,BufNewFile *.e{build,class} setlocal ts=4 sw=4 noexpandtab |
158 |
|
158 |
|
159 |
" In text files, limit the width of text to 78 characters, but be careful |
159 |
" In text files, limit the width of text to 78 characters, but be careful |
160 |
" that we don't override the user's setting. |
160 |
" that we don't override the user's setting. |
Lines 173-179
Link Here
|
173 |
|
173 |
|
174 |
" When editing a crontab file, set backupcopy to yes rather than auto. See |
174 |
" When editing a crontab file, set backupcopy to yes rather than auto. See |
175 |
" :help crontab and bug #53437. |
175 |
" :help crontab and bug #53437. |
176 |
autocmd FileType crontab set backupcopy=yes |
176 |
autocmd FileType crontab setlocal backupcopy=yes |
177 |
|
177 |
|
178 |
" If we previously detected that the default encoding is not UTF-8 |
178 |
" If we previously detected that the default encoding is not UTF-8 |
179 |
" (g:added_fenc_utf8), assume that a file with only ASCII characters (or no |
179 |
" (g:added_fenc_utf8), assume that a file with only ASCII characters (or no |
Lines 182-188
Link Here
|
182 |
autocmd BufReadPost * |
182 |
autocmd BufReadPost * |
183 |
\ if exists("g:added_fenc_utf8") && &fileencoding == "utf-8" && |
183 |
\ if exists("g:added_fenc_utf8") && &fileencoding == "utf-8" && |
184 |
\ ! &bomb && search('[\x80-\xFF]','nw') == 0 && &modifiable | |
184 |
\ ! &bomb && search('[\x80-\xFF]','nw') == 0 && &modifiable | |
185 |
\ set fileencoding= | |
185 |
\ setlocal fileencoding= | |
186 |
\ endif |
186 |
\ endif |
187 |
|
187 |
|
188 |
augroup END |
188 |
augroup END |