These are chat archives for SirVer/ultisnips

Aug 2017
Charles-André Bouffard
Aug 19 2017 18:31

Hi! I'm having a small problem with UltiSnips;

When I'm in a vim buffer, the default python and all snippets work, but not my custom one.. Ultisnips detects that I've created custom snippets, but I'm unable to expand them.
I've checked if the snippets were found and they are;

1: /Users/cabouffard/src/configs/UltiSnips/all.snippets
2: /Users/cabouffard/src/configs/UltiSnips/python.snippets
3: /Users/cabouffard/src/configs/dotfiles/.vim/bundle/vim-snippets/UltiSnips/all.snippets
4: /Users/cabouffard/src/configs/dotfiles/.vim/bundle/vim-snippets/UltiSnips/python.snippets

I made sure that my rtp contained my folder with set rtp+=~/src/configs/UltiSnips/ and when I do :UltilSnipEdit it correctly open my custom file.

My custom python.snippets file includes:

snippet dw "print test" b
This should print this text

I've tried adding custom snippets to my all.snippets file but I have the exact same behavior.

Here are my custom configurations for UltiSnips:

    let g:UltiSnipsExpandTrigger = "<tab>"
    let g:UltiSnipsJumpForwardTrigger = "<tab>"
    let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
    let g:UltiSnipsSnippetsDir = "/Users/cabouffard/src/configs/UltiSnips"
    let g:ultisnips_python_quoting_style = 'single'
    let g:ultisnips_python_style = 'google'

Any suggestions?