|
发表于 2007-1-27 15:52:38
|
显示全部楼层
Post by 食古不化
把/etc/vim/vimrc中的那几行:
- " In text files, limit the width of text to 78 characters, but be careful
- " that we don't override the user's setting.
- " autocmd BufNewFile,BufRead *.txt
- " \ if &tw == 0 && ! exists("g:leave_my_textwidth_alone") |
- " \ setlocal textwidth=78 |
- " \ endif
复制代码
彻底注释掉!!
里面还说we don't override the user's setting??
哪位给看看这个判断语句写的什么意思!!
我想,其意图之一是:若您对/etc/vim/vimrc无修改权限,则可以通过在自己的用户配置文件里定义一个g:leave_my_textwidth_alone变量,来阻止/etc/vim/vimrc 对 textwidth 选项的修改。 |
|