On 19/01/10 21:36, MK wrote:
On Tue, 19 Jan 2010 12:28:45 -0500 (EST)
"Benjamin R. Haskell"<[email protected]>  wrote:
Ubuntu 9.10's /usr/share/vim/vimrc contains:

if has("syntax")
     syntax on
endif

Try commenting that out, for starters.  Otherwise, I'll keep digging.
FC 9 and 10 don't appear to have a similar 'global vimrc'.

Yeah that's probably it.  I'm not working in ubuntu right now but I had a look, 
and that file (a softlink to /etc/vim/vimrc) is there.   I previously 
uninstalled the ubuntu vim -- the one I am using is in /usr/local -- which is 
why such a conflict did not occur to me.  I presume that the uninstall did not 
remove those files, and that vim always checks a list of default directories 
inc. /usr/share/vim (is that a good idea?)

Someone should send ubuntu a note about this since this is clearly a BAD 
POLICY.  If anyone connected with vim, etc wants to do so, please reply, 
otherwise I'll go ahead.



"Good" and "bad" are subjective. The SuSE /etc/vimrc includes the following:

" Changed default required by SuSE security team--be aware if enabling this
" that it potentially can open for malicious users to do harmful things.
set nomodeline

disabling _all_ modelines in _all_ files for _all_ users. I don't agree with the SuSE security team here (considering how diligent Bram has been in the past to forbid setting "dangerous" options from a modeline), and my vimrc (which is sourced after this in the versions which look at /etc/vimrc for a system vimrc [including the Vim versions distributed by SuSE, which are after my own-compiled /usr/local/bin/vim in the $PATH but might get used for whatever reason]) includes a line which sets 'modeline' on.


Best regards,
Tony.
--
Spelling is a lossed art.
-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to