I have a snippet that expands properly from the vim insert mode:
#In vim insertmode, `prg will expand snippet prg in Ultisnips dir
:execute 'imap `prg prg' . g:UltiSnipsExpandTrigger . '<Esc>gg=G<C-j>'
But I tried to use this is vim's menu as well:
an Snippet<Tab>`prg :execute 'imap `prg prg' . :UltiSnipsExpandTrigger . '<Esc>gg=G<C-j>'
This is giving me error :
E115: Missing quote: '
E15: Invalid Expression: 'imap `prg prg' . g:UltiSnipsExpandTrigger . '
The RHS of the menu mode is the same function that is used in insert mode. Don't know why it is complaining, and how can I call it in menu.
I am using:
vi --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 2 2015 08:37:26)
Included patches: 1-207, 209-640
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
and Ultisnips(https://github.com/SirVer/ultisnips).
Kindly help.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Friday, June 12, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment