On Oct 3, 10:52 pm, "Israel Chauca F." <[email protected]> wrote: > On Oct 4, 2010, at 12:35 AM, Bee wrote: > > > 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 > > If I understood correctly, this should do what you want: > > inoremap <Plug>HR ------etc. > imap ,ha --,<Plug>HR > > See :h using-<Plug>
Thank you, that is exactly what I was looking for. -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
