Code Monkey home page Code Monkey logo

Comments (8)

SirVer avatar SirVer commented on May 9, 2024

Hard to say without seeing your config. Usually, problems like this are related to VundleVim/Vundle.vim#202.

from vim-snippets.

georgjaehnig avatar georgjaehnig commented on May 9, 2024

OK, I've just put my .vimrc here.
The problem you've linked to is about bad filetype recognition. But as I wrote, the autocomplete of
:set filetype=<TAB>
outputs php. Isn't that a sign that filetype recognition works?

from vim-snippets.

SirVer avatar SirVer commented on May 9, 2024

no, it isn't.

from vim-snippets.

SirVer avatar SirVer commented on May 9, 2024

Looking over your vimrc right now. Generally speaking the comment marker does only work on the beginning of the line - it sometimes also works later, but that is not guaranteed.

I also do not see UltiSnips sourced in your .vimrc.

from vim-snippets.

georgjaehnig avatar georgjaehnig commented on May 9, 2024

Thanks for hint about the comment marker.
About UltiSnips: As I wrote, I am using garbas/vim-snipmate for snippets, isn't that OK for this snippet plugin?

from vim-snippets.

SirVer avatar SirVer commented on May 9, 2024

Ah, sorry. Yes, you can use garbas/vim-snipmate. But I cannot give you support for that as I do not know it :). If you have python support in your vim, you can also try tracking https://github.com/sirver/ultisnips instead which I know well and can help track down problems.

from vim-snippets.

ajzafar avatar ajzafar commented on May 9, 2024

Hi @georgjaehnig! In SnipMate, when loading snippets for certain scopes, other scopes may be loaded automatically. These are called scope aliases, and SnipMate defines some by default, including a PHP -> JavaScript, HTML alias. This is all documented under the SnipMate-options helptag. If you want, you can disable the default aliases entirely by putting let g:snipMate_no_default_aliases = 1 in your vimrc.

from vim-snippets.

georgjaehnig avatar georgjaehnig commented on May 9, 2024

Thanks, this was what I was looking for!

from vim-snippets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.