Monday, September 29, 2014

echohl does not work interactively

Consider these commands:

echo 'hello'
echohl Error
echo 'world'
echohl None

When saved to a script test.vim, and using :source test.vim, I see "hello" printed as normal text, and "world" printed with error highlighting. This is the expected behavior.

If instead, I execute each command interactively by hand, both "hello" and "world" get normal highlighting. The echohl Error seems to be ignored.

Is this supposed to happen?


VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 9 2014 11:16:05)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-430
Compiled by (myself)
Huge version with GUI. Features included (+) or not (-)

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment