On Wed, December 9, 2009 11:19 am, anna wrote:
> I modified t_vb so that no beep or flash using below command
>       :set vb t_vb=
> However, I can set it back to its default. When I using Vim, the
> default is "^[|B".

Well, the default should be <Esc>|f, shouldn't it?

> So, I am trying to use below command to set it back.
>       :set vb t_vb="^[|B"
> But, it doesn't work. The ^ is created using <CTRL-Q>.
> Anybody knows how to set it back to default?

First, set does not need quotation marks. So you need to leave them out
(if you do not want them in your setting). Secondly, | usually separates
ex-commands, so you would need to escape it. So try:

:set t_vb=^[\|B

Wehre ^[ is created by pressing <Ctrl-V><ESC> (or in case <Ctrl-V>
pastes because you've source mswin.vim, use <Ctrl-Q> instead).

Alternatively, you can use let in which case you need to quote the
setting:
let &t_vb="^[|f"

But, if you simply want to set t_vb to the default value, you can also
use :set t_vb&

See the following help secions:

:h set-&
:h :let-&
:h option-backslash
:h set-args

regards,
Christian
-- 
:wq

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to