Skip to content

Warning in snipMate.vim: Snippet is already defined.

Using the last shippable image and running vim /entrypoint.sh we see the following error:

"/entrypoint.sh" 8L, 132C
Warning in snipMate.vim: Snippet #! is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet if is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet elif is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet for is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet wh is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet until is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet case is already defined. See :h multi_snip for help on snippets with multiple matches.

This case is very similar to https://github.com/Vauxoo/vim-openerp/pull/2 Please, create other PR to vx/vim-openerp (if is the case) in order to fix all duplicated snippets of all programs using a regex or something to get all cases.

Add a test for travis.yml to check all VIM's snippets: docker run -it --rm -v my_script.py:/root/my_script.py vauxoo/odoo-80-image-shippable-auto python /root/my_script.py