a problem install ultisnips with vundle

Asked by tracyone

i search some similar problem ,but i can't solve my problem
ultisnips not work when i press tab(default setting) or selfdefine keymapping
my vundle setting

"{{{vundle
"
"behave very Vi compatible (not advisable)
set nocp
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
filetype off
syntax on
func! Vundle()
    if g:iswindows==1
        set rtp+=~/vimfiles/bundle/vundle
    else
        set rtp+=~/.vim/bundle/vundle/
    endif
    " let Vundle manage Vundle
    " required!
    if g:iswindows==1
        silent! :execute "call vundle#rc('$VIM/vimfiles/bundle')"
    else
        silent! :execute "call vundle#rc()"
    endif
    silent! :execute "Bundle 'gmarik/vundle'"
endfunc
execute "call Vundle()"
let g:justvundled = exists(':Bundle')
if g:justvundled == 0
    if has('win32')
        cd $VIM
        call mkdir($VIM."\\vimfiles\\bundle\\vundle","p")
        call system('git clone https://github.com/gmarik/vundle.git .\vimfiles\bundle\vundle')
        cd -
        execute "silent! call Vundle()"
    else
        call system('mkdir -p ~/.vim/bundle/vundle')
        call system('git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle')
        execute "silent! call Vundle()"
    endif
    :helptags $VIMFILES\bundle\vundle\doc\
endif

" My Bundles here:
"
" original repos on github
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'a.vim'
Bundle 'tracyone/dict'
Bundle 'tracyone/Align'
Bundle 'tracyone/calendar'
Bundle 'tracyone/Colour-Sampler-Pack'
Bundle 'kien/ctrlp.vim'
Bundle 'delimitMate.vim'
Bundle 'FuzzyFinder'
Bundle 'genutils'
Bundle 'SirVer/ultisnips'
Bundle 'tracyone/snippets'
if g:iswindows==0 && has("patch584")
    let g:use_ycm=1
else
    if has("patch885") && has('lua')
        let g:use_neocomplete=1
    else
        let g:use_neocomplete=0
    endif
    let g:use_ycm=0
endif
if g:use_ycm==0
    if g:use_neocomplete==1
        Bundle 'Shougo/neocomplete'
    else
        Bundle 'Shougo/neocomplcache'
    endif
else
    Bundle 'Valloric/YouCompleteMe'
endif
Bundle 'The-NERD-Commenter'
Bundle 'tracyone/nerdtree'
Bundle 'ShowMarks7'
Bundle 'wesleyche/SrcExpl'
Bundle 'surround.vim'
Bundle 'majutsushi/tagbar'
Bundle 'Shougo/unite.vim'
Bundle 'L9'
Bundle 'mattn/zencoding-vim'
Bundle 'vimwiki'
Bundle 'matrix.vim--Yang'
Bundle 'adah1972/fencview'
Bundle 'Markdown'
Bundle 'LaTeX-Suite-aka-Vim-LaTeX'
Bundle 'DrawIt'
Bundle 'mbbill/VimExplorer'
Bundle 'renamer.vim'
Bundle 'tracyone/doxygen-support'
Bundle 'tracyone/CCtree'
Bundle 'hallison/vim-markdown'
Bundle 'TeTrIs.vim'
Bundle 'tracyone/mark.vim'
Bundle 'tracyone/MyVimHelp'
Bundle 'scrooloose/syntastic'
Bundle 'Shougo/vimproc.vim'
Bundle 'Shougo/vimshell.vim'
Bundle 'Yggdroot/indentLine'
if g:iswindows == 1
    Bundle 'tracyone/pyclewn'
else
    Bundle 'tracyone/pyclewn_linux'
endif

filetype plugin indent on
"}}}

my ultisnips setting:
"{{{UltiSnips
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsListSnippets ="<c-tab>"
let g:UltiSnipsJumpForwardTrigge="<c-j>"
let g:UltiSnipsJumpBackwardTrigge="<c-k>"
"let g:UltiSnipsSnippetDirectories=["bundle/snippets"]
let g:UltiSnipsSnippetsDir=$VIM."/vimfiles/bundle/snippets"
"au FileType c execute "UltiSnipsAddFiletypes c"
"au FileType cpp execute "UltiSnipsAddFiletypes cpp"
"au FileType verilog execute "UltiSnipsAddFiletypes verilog"
"au FileType vim execute "UltiSnipsAddFiletypes vim"
"}}}

it not work unless i add " au FileType c execute "UltiSnipsAddFiletypes c" in my _vimrc

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

ftdetect scripts are not sourced. This is (likely) because you installed vundle wrongly: https://github.com/gmarik/vundle/issues/16.

Can you help with this problem?

Provide an answer of your own, or ask tracyone for more information if necessary.

To post a message you must log in.