Problem with UltiSnips_ExpandSnippet()
I'm writing a mapping to expand snippets with <CR> after they are shown with neocomplete plugin. First note that in order to expand snippets with <C-s> I have the following setting in my vimrc.
let g:UltiSnipsExpa
Taking this into account the mapping to expand the snippets with <CR> and neocomplete is
imap <expr><CR> pumvisible() ?
\ (len(keys(
\ neocomplete#
This works nicely however I wanted to make the mapping none recursive. However with
inoremap <expr><CR> pumvisible() ?
\ (len(keys(
\ neocomplete#
a "^S" character is inserted instead of expanding the snippet. Therefore I tried a more general mapping:
inoremap <expr><CR> pumvisible() ?
\ (len(keys(
\ neocomplete#
With this mapping Ultisnips gives an error that essentially is
Error detected while processing function UltiSnips_
E523: Not allowed here
So, how I can replace the recursive '\<C-s>" mapping with a non recursive mapping that uses the more general UltiSnips_
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply: