On Sep 11, 1:16 am, Spiros Bousbouras <[email protected]> wrote: > :iabbrev CUC <NL>cucumber > :inoremap <C-y> CUC<space> > > But when I press Ctrl-y I get 'CUC ' i.e. the CUC does not get > expanded. I tried > > :inoremap <C-y> CUC<Esc> > > and > > :inoremap <C-y> CUC<C-]> > > but no dice.
:inoremap explicitly says to Vim, "don't expand any additional mappings or abbreviations when executing this mapping". In other words, you use the "noremap" commands to ensure you get built-in functionality in the right-hand-side of your mapping. But, you don't want built-in functionality, you want your abbreviation. Does using just :imap instead of :inoremap fix things? This seems to work as expected for me: :iabbrev CUC cucumber :imap <C-y> CUC<Esc> -- 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
