1

I have the following configuration in my .vimrc file:

let g:UltiSnipsExpandTrigger="<C-k>"
let g:UltiSnipsJumpForwardTrigger="<Down>"
let g:UltiSnipsJumpBackwardTrigger="<Up>"

However for some reason it doesn't expand the snippets.

Does anybody know what seems to be the problem?

flashburn
  • 4,180
  • 7
  • 54
  • 109
  • If you have YouCompleteMe, have a look here http://stackoverflow.com/questions/14896327/ultisnips-and-youcompleteme Some answers may help you even if you don't have ycm – Antoine Snyers Oct 19 '16 at 09:17
  • `:verbose imap ` and check whether its got mapped to ultisnip's expansion or not ! – dNitro Oct 19 '16 at 10:45
  • @dNitro [Here is what I get](https://imagebin.ca/v/2z24zsu3jd0I) when I run the command. It looks like it worked. Does it matter that I run this command on a Mac? – flashburn Oct 19 '16 at 17:49
  • @flashburn No, actually this command checks whether `` is mapped to anything in *insert* mode or not, and it works. The problem may be with your snippets itself. Where you insert your snippets and how you define them ?!!! – dNitro Oct 19 '16 at 18:31
  • @dNitro I'm not sure if it is a bug or maybe I define a snippet in a wrong way. [Here is what I have for a snippet](http://pastebin.com/ywNCrxds). I start typing in the following way `#inc` which shows me a snippet, but when I select it vim inserts `##inc<` into the code which won't expand. – flashburn Oct 19 '16 at 18:39
  • @flashburn your snippet definition is also correct and expands as expected. define your snippet like this: http://pastebin.com/2dWcPtsZ – dNitro Oct 19 '16 at 19:05
  • @dNitro Do you mean that my definition is incorrect? – flashburn Oct 19 '16 at 19:12
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/126159/discussion-between-dnitro-and-flashburn). – dNitro Oct 19 '16 at 19:15

0 Answers0