i've got a mapping for iterating thru suggested pop up window of omni completioninoremap <expr> <TAB> pumvisible() ? \<C-y> : \<TAB>but i also want a  to trigger while there is no suggestions menu but a snipmate shortcut <Plug>snipMateNextOrTrigger has been faced, but now only actual tab is inserted after an expression expected to be expanded.Solutioninoremap <expr> <TAB> pumvisible() ? \<C-y> : <c-r>=snipMate#TriggerSnippet()<cr>
Redefine  key for triggering plugin action
key bindings;plugin snipmate
One way would be to call whatever <tab> is normally calling instead of issuing the tab key press. Something like:inoremap <expr> <TAB> pumvisible() ? \<C-y> : <esc>:call NormalTabFunction()<cr>aThe command that actually worked in this specific case was (resulting from the discussion in the comments):inoremap <expr> <TAB> pumvisible() ? \<C-y> : <c-r>=snipMate#TriggerSnippet()<cr>