On Wed, 2006-07-26 at 16:55 +0200, Florian Kulzer wrote:
> With vi, when you are in edit mode ("-- INSERT --" etc.), you can press
> <CTRL> + Q followed by <ESC>. (Release the other two keys again before
> you press <ESC>.) If you use colors you will see that '^[' is shown in a
> different color to indicate that it is a special character and not just
> '^' + '['. It is furthermore treated as one character when you move the
> cursor across it. 

Cool, thanks.  However, at least in gnome-terminal, you should use
'<CTRL> + v' and not '<CTRL> + q'.  From vim-doc usr_24.html:

*24.8*  Entering special characters

The CTRL-V command is used to insert the next character literally.  In other
words, any special meaning the character has, it will be ignored.  For
example:

        CTRL-V <Esc>

Inserts an escape character.  Thus you don't leave Insert mode.  (Don't type
the space after CTRL-V, it's only to make this easier to read).

        Note:
        On MS-Windows CTRL-V is used to paste text.  Use CTRL-Q instead of
        CTRL-V.  On Unix, on the other hand, CTRL-Q does not work on some
        terminals, because it has a special meaning.


Jamie Strandboge

-- 
Anemone Computing
http://www.anemonecomputing.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to