On Jan 13, 7:21 pm, "Kevin R. Bulgrien" <[email protected]> wrote:
> I have a .vimrc that I have used for years.  I upgraded the system and now
> vim-enhanced is not interpreting the file the same way it used to.  It seems
> to boil down to "syntax on" or "syntax enable" being in the file.  Whenever
> one of them is present, it blows away settings like indentexpr that I have
> set in the .vimrc file.  The position of the command does not seem to
> change the behavior.
>
> What is the new way of setting syntax on as the default while retaining the
> proper, expected function of the .vimrc file?
>

Probably you have 'filetype indent on' or 'filetype plugin indent on'
in your .vimrc, or when you upgraded the system, the system .vimrc
includes this. Per-filetype indentation rules are very common (and
quite useful to most people), and they will override things like
indentexpr. If you don't like it you may need to turn it off. I would
try to find your system .vimrc (see :version output) and double-check
all the settings there to see if you like them.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to