garbas / vim-snipmate

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.
www.vim.org/scripts/script.php?script_id=2540
2.01k stars 181 forks source link

Unknown function: snipMate#TriggerSnippet #269

Closed code4pay closed 6 years ago

code4pay commented 6 years ago

if I type my snippet character and hit tab I get

E117: Unknown function: snipMate#TriggerSnippet
E15: Invalid expression: snipMate#TriggerSnippet()

using vim 8, plugin loaded by vundle I have commented out every command in my vimrc and deleted all other plugins except for loading this plugin and get the same error.

Thanks in advance for anyhelp

ajzafar commented 6 years ago

@code4pay Are you using master from GitHub? Please make sure that you are.

ajzafar commented 6 years ago

@code4pay Are you on Windows? If so this could be a duplicate of #264

code4pay commented 6 years ago

Hi Thanks for the reply, No Not on Windows on Debian Wheezy , and using Vundle checked status of branch and did a pull but it is uptodate with master. Vundle section of my vimrc

 set nocompatible                                                     
 filetype off                                                         

 set rtp+=~/.vim/bundle/Vundle.vim                                    
 call vundle#begin()                                                  

 Plugin 'VundleVim/Vundle.vim'                                        

 "vundle managed packages                                             
 Plugin 'mileszs/ack.vim'                                             
 Plugin 'tpope/vim-fugitive'                                          
 Plugin 'w0rp/ale'                                                    
 Plugin 'ctrlpvim/ctrlp.vim'                                          
 Plugin 'ap/vim-buftabline'                                           
 Plugin 'MarcWeber/vim-addon-mw-utils'                                
 Plugin 'tomtom/tlib_vim'                                             
 Plugin 'garbas/vim-snipmate'                                         
 call vundle#end()                                                    
code4pay commented 6 years ago

Note I have tried both file type on and off with no change.

ajzafar commented 6 years ago

@code4pay Can you provide a minimal vimrc that produces this issue for you? That is a vimrc that contains absolutely nothing but what's necessary to produce this issue. Take out extraneous plugins, extraneous settings, and so on.

code4pay commented 6 years ago

Thanks @ajzafar, I worked it out when I went to start cleaning out my vimrc. I always work in the same saved session file which must have had some thing set that broke the plugin even when I reloaded my vimrc. When I went to edit the vimrc without first loading the session file it worked. Apologies for not picking that up earlier. thanks for your help.

ajzafar commented 6 years ago

Glad to help.