Wednesday, July 18, 2012

答复: insert mode map multiple spaces

I don't understand too.

-----邮件原件-----
发件人: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] 代表 Gary
Johnson
发送时间: 2012年7月19日 14:30
收件人: vim_use@googlegroups.com
主题: Re: insert mode map multiple spaces

On 2012-07-18, sinbad wrote:
> with the following insert mode mapping, if i type "test<space>oe",
> i'll get double space between "test one", can i change the mapping to
> always have atmost one <space>
>
> inoremap oe <space>one<space>

Your mapping is doing exactly what you told it to do. Isn't the following
what you really want, or am I missing something?

inoremap oe one<space>

Regards,
Gary

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

Post a Comment