On 20 май, 08:36, Matt Wozniski <m...@drexel.edu> wrote:
> 2009/5/19 Raúl Núñez de Arenas Coronado:
> Don't know if you've thought about it, but an <expr> map might be suitable...
>
> nnoremap <expr> <Enter> SuperEnter()
> inoremap <expr> <Enter> SuperEnter()
>
> function! SuperEnter()
> if match(getline('.'), "some context") < 0
> return "\<CR>"
> endif
>
> echomsg "Magic!"
> return ""
> endfunction
>
Wow, thanks for :map-<expr> !
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---