This is the first time 'm trying snipmate with VIm 7.3 in ubuntu 12.04.
My .vimrc
configuration is :
" kill vi compatibility
set nocompatible " be iMproved
" -------------------------------------
" ---------snipmate--------------------
" -------------------------------------
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
Bundle "honza/vim-snippets"
Bundle "garbas/vim-snipmate"
" -------------------------------------
filetype plugin on
I believe thats all I want followed by :BundleInstall
.
The tree structure of my .vim/bundle
is
prayag@prayag:~$ tree -d .vim/bundle/
.vim/bundle/
|-- vim-colors-solarized
| |-- autoload
| |-- bitmaps
| |-- colors
| `-- doc
|-- vim-snipmate
| |-- after
| | `-- plugin
| |-- autoload
| |-- doc
| |-- ftplugin
| |-- plugin
| `-- syntax
|-- vim-snippets
| |-- UltiSnips
| |-- autoload
| `-- snippets
| |-- coffee
| `-- javascript
`-- vundle
|-- after
| |-- ftplugin
| `-- plugin
|-- autoload
| `-- vundle
|-- doc
|-- ftplugin
|-- plugin
|-- syntax
`-- test
`-- files
139 directories
BUT, when I try some java code to test main
snippet,
$ vi App.java
main
After pressing <TAB>
gives me following result/error
main<Plug>snipMateNextOrTrigger
:verbose imap <Plug>snipMateNextOrTrigger
gives me
No mapping found
with finish
section commented in plugin/snipMate.vim
, :verbose imap <Plug>snipMateNextOrTrigger
gives me following information,
i <Plug>snipMateNextOrTrigger * <C-R>=snipMate#TriggerSnippet()<CR>
Last set from ~/.vim/bundle/vim-snipmate/plugin/snipMate.vim
and On pressing <TAB>
Error detected while processing /home/prayag/.vim/bundle/vundle/autoload/snipMate.vim:
line 15:
E122: Function <SNR>84_RemoveSnippet already exists, add ! to replace it
Same result/error I get with following configuration in .vimrc
,
:imap <C-J> <Plug>snipMateNextOrTrigger
:smap <C-J> <Plug>snipMateNextOrTrigger
Same configuration worked fine for another ubuntu 13.04 machine.
I must be doing something wrong but couldn't figure it out.