--- files/vimrc-r4 2010-04-15 12:30:32.000000000 -0700 +++ /tmp/vimrc-r4 2013-03-10 16:10:48.359879962 -0700 @@ -154,7 +154,7 @@ " Better to emerge app-vim/gentoo-syntax, which provides full syntax, " filetype and indent settings for all things Gentoo. au BufRead,BufNewFile *.e{build,class} let is_bash=1|setfiletype sh - au BufRead,BufNewFile *.e{build,class} set ts=4 sw=4 noexpandtab + au BufRead,BufNewFile *.e{build,class} setlocal ts=4 sw=4 noexpandtab " In text files, limit the width of text to 78 characters, but be careful " that we don't override the user's setting. @@ -173,7 +173,7 @@ " When editing a crontab file, set backupcopy to yes rather than auto. See " :help crontab and bug #53437. - autocmd FileType crontab set backupcopy=yes + autocmd FileType crontab setlocal backupcopy=yes " If we previously detected that the default encoding is not UTF-8 " (g:added_fenc_utf8), assume that a file with only ASCII characters (or no @@ -182,7 +182,7 @@ autocmd BufReadPost * \ if exists("g:added_fenc_utf8") && &fileencoding == "utf-8" && \ ! &bomb && search('[\x80-\xFF]','nw') == 0 && &modifiable | - \ set fileencoding= | + \ setlocal fileencoding= | \ endif augroup END