2

I've installed the UltiSnips and vim-snippets plugins. In order for the snippets to work, I need to activate vim-snippets for UltiSnips in my .vimrc file.

Vundle version for snipmate looks like this:

ActivateAddons vim-snippets snipmate

I need to do the same, but for Pathogen and UltiSnips instead of snipmate.

How can I do it?

Update 1: My current .vimrc (UltiSnips doesn't work).

set encoding=utf-8
set fileencoding=utf-8
syntax on
execute pathogen#infect()
filetype plugin indent on
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"

I'm using Windows 10 (Russian locale, German keyboard layout).

Update 2: With this .vimrc file, snippet expansion works in gVim, but not in Vim.

set nocompatible
set encoding=utf-8
set fileencoding=utf-8
syntax on
execute pathogen#infect()
filetype plugin indent on
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:UltiSnipsSnippetsDir = $HOME.'/vimfiles/bundle/vim-snippets/UltiSnips'
Glory to Russia
  • 217
  • 1
  • 3
  • 9
  • You don't, Pathogen doesn't need explicit activations. What you need to do is read UltiSnips docs and configure it (mainly set g:UltiSnipsSnippetsDir) and the triggers. – Sato Katsura Jul 22 '16 at 11:42

1 Answers1

2

I don't think you have to do that for Pathogen + UltiSnips + vim-snippets. I have such setup and only thing in my vimrc is let g:UltiSnipsExpandTrigger="<c-j>". Both plugins are in ~/.vim/bundle.

grodzik
  • 4,588
  • 19
  • 27