Sunday, October 3, 2010

How to bury a mapping?

How to bury a mapping?

The following works, and by using upper case makes it difficult to
type the sub-string ",HR".

imap ,HR -------1---------2---------3---------4---------5---------6----
<cr>
imap ,ha --,HR
imap ,hf \ ,HR
imap ,hh "-,HR
imap ,hs #-,HR
imap ,hz !-,HR

I would like to bury ,HR so it can not be found.
I would like to use one of the other ,h words.
I would also like it to NOT use any "eval" commands.
It must be compatible with some older vim.

Is it possible?

Something like the following... (which does NOT work).
I have tried several combinations of inoremap, still did not work.

imap ,hz -------1---------2---------3---------4---------5---------6----
<cr>
imap ,ha --,hz
imap ,hf \ ,hz
imap ,hh "-,hz
imap ,hs #-,hz
imap ,hz !-,hz

-Bill

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