VIM - how to work with BOTH supertab.vim with snipMate.vim?

372

Solution 1

Ok i got it working with the scripts linked in the original question.

It turned out that i used supersnipmate, a snipmate fork, that unfortunately removed the builtin supertab support of snipmate.

Also i did use the original supertab hosted on vim.org that did not work with snipmate as well. The linked script on github turned out to be the successor (or continued version) of the old supertab.

Solution 2

I have both working well together.

The only relevant line in my .vimrc is:

let g:SuperTabDefaultCompletionType = "context"
Share:
372

Related videos on Youtube

user2484593
Author by

user2484593

Updated on September 17, 2022

Comments

  • user2484593
    user2484593 over 1 year

    I have some trouble for my html popup window. First, here is my popup form (unfinished).

    <!--Popup add new request -->
    <a href="#x" class="overlay" id="add_form"></a>
    <div class="popup">
        Request for : 
        <a class="close" href="#close"></a>
    </div>
    

    And this is the button for popup trigger

    <button type="button" onclick="location.href='#add_form'">AddX</button>
    

    What I mean trouble here is I am using address to bring my popup. So when it's already submitted and I press 'Back' button in my browser, the popup form will appear again. Is there any way to prevent this?

    • matthias krull
      matthias krull over 13 years
      i have the same problem but the other way round. i only get snipmate to work but not supertab. both work standalone
    • matthias krull
      matthias krull over 13 years
      what version of vim are you using? what OS? What other plugins do you use?
  • Grant Weiss
    Grant Weiss almost 11 years
    my bad, use window.location.replace (url);
  • user2484593
    user2484593 almost 11 years
    That worked.. Still speechless.. Thanks anyway! Sorry for that minus that you get :(