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'
UltiSnips
docs and configure it (mainly setg:UltiSnipsSnippetsDir
) and the triggers.