Monday, August 15, 2011

Re: why "imap ;áo ção" doesn't work? # i.e., imap ;<255>o <231><277>o

On Aug 14, 2:04 pm, Leonardo Barbosa <barbosa.leona...@gmail.com>
wrote:
> Hello everyone,
>
> I'm trying to abbreviate or imap latin caracteres. At first, i tried that:
> imap ;áo ção      # imap ;<255>o  <231><277>o
> I didn't work.
>

Is the '#' actually in the command you entered? '#' does not start a
comment in Vim, '"' (double quote) does. Additionally, you cannot put
comments after mappings with any leading whitespace, because the
whitespace will also be part of the mapping.

Where did you enter this? At the Vim command-line? In your .vimrc?

If it's in your .vimrc, you will probably need to specify the encoding
used using the scriptencoding command before Vim will properly
recognize which characters you are attempting to use in your mapping.

If you actually have a way to enter the characters shown on the LHS of
your mapping from your keyboard, without resorting to digraphs or CTRL-
V, then Vim should be able to map it to just about anything.

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

No comments: