On 05/13/12 12:48, Gerald Klein wrote:
> Hi, Does anyone know how I can get rid if these warnings
>
> Large indenting detected, speed optimizations engaged (v1.33)
> Press ENTER or type command to continue
These seem to be coming from $VIMRUNTIME/indent/php.vim [1] which
just looks like lousy code to me. IMHO, an indenting function
should NEVER have side-effects like ":echom" in them. Especially if
there's nothing catastrophic about it. And (barring debugging of
the php.vim file by vim-developers) nobody cares about these
messages. It looks like it was added in changeset e6fd82f42ba0.
As a quick hack, I'd just nuke the two :echom lines in question from
the file and get on with my life. I propose the attached patch
which boringly does the same (I'm not on vim_dev@ so perhaps someone
there could make sure this is bueno).
-tim
[1]
http://code.google.com/p/vim/source/browse/runtime/indent/php.vim#364
--
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
diff -r 8201108e9cf0 runtime/indent/php.vim
--- a/runtime/indent/php.vim Tue May 01 21:14:34 2012 +0200
+++ b/runtime/indent/php.vim Sun May 13 19:45:11 2012 -0500
@@ -361,14 +361,12 @@
if !b:PHP_indentinghuge && b:PHP_lastindented > b:PHP_indentbeforelast
if b:PHP_indentbeforelast
let b:PHP_indentinghuge = 1
- echom 'Large indenting detected, speed optimizations engaged
(v1.33)'
endif
let b:PHP_indentbeforelast = b:PHP_lastindented
endif
if b:InPHPcode_checked && prevnonblank(v:lnum - 1) != b:PHP_lastindented
if b:PHP_indentinghuge
- echom 'Large indenting deactivated'
let b:PHP_indentinghuge = 0
let b:PHP_CurrentIndentLevel = b:PHP_default_indenting
endif