Re: indentexpr and = operator

2011-05-16 Thread Philipp Marek
Hello Gary, I found the problem. It was set lisp that caused indentexpr to be ignored. Sadly that's only documented in the lisp option, and not in indentexpr ... Thank you! Regards, Phil -- Versioning your /etc, /home or even your whole installation? Try fsvs

Re: indentexpr and = operator

2011-05-16 Thread Gary Johnson
On 2011-05-16, Philipp Marek wrote: Hello Gary, I found the problem. It was set lisp that caused indentexpr to be ignored. Congratulations! I'm glad you found the answer, and thanks for posting your discovery. Sadly that's only documented in the lisp option, and not in indentexpr ...

Re: indentexpr and = operator

2011-05-16 Thread Ben Schmidt
Sadly that's only documented in the lisp option, and not in indentexpr ... Good point. It sounds like adding a sentence to the help for 'indentexpr' is in order: May be overridden by the lisp indentation algorithm when 'lisp' is set. It also sounds like the help for = should be

Re: indentexpr and = operator

2011-05-15 Thread Philipp Marek
Just try by :set indentexpr=5 New lines are correctly indented, but = does the wrong thing. Could you elaborate on that just a wee bit. Does the wrong thing is not much to go on. Well, indentexpr is not used - the result is as if indentexpr is simply not set, ie. what autoindent gives.

Re: indentexpr and = operator

2011-05-15 Thread Gary Johnson
On 2011-05-15, Philipp Marek wrote: Just try by :set indentexpr=5 New lines are correctly indented, but = does the wrong thing. Could you elaborate on that just a wee bit. Does the wrong thing is not much to go on. Well, indentexpr is not used - the result is as if indentexpr is

indentexpr and = operator

2011-05-14 Thread Philipp Marek
Hello everybody, in the documentation I found that the = operator should use indentexpr, if set. Well, it doesn't, regrettably. Just try by :set indentexpr=5 New lines are correctly indented, but = does the wrong thing. BTW, the (old?) page at http://www.vim.org/develop.php doesn't

Re: indentexpr and = operator

2011-05-14 Thread Gary Johnson
On 2011-05-14, Philipp Marek wrote: Hello everybody, in the documentation I found that the = operator should use indentexpr, if set. Well, it doesn't, regrettably. Just try by :set indentexpr=5 New lines are correctly indented, but = does the wrong thing. Could you elaborate