GithubHelp home page GithubHelp logo

Inserting a literal tab about supertab HOT 2 CLOSED

ervandew avatar ervandew commented on August 26, 2024
Inserting a literal tab

from supertab.

Comments (2)

skeept avatar skeept commented on August 26, 2024

If you desire that behavior just put in your .vimrc

:inoremap pumvisible() ? "" : ""

this way you still use tab for completion and if you are already in the
midle of a a completion you can use to go back and forth in the
completion options, but if you are just typing, then hitting shift-tab will
just insert a tab.

On second though, the .vimrc file may not be the correct place to put the
above line, you may have to create a file in .vim/after/plugin and put that
line there (the name doesn't really matter) so that file is sourced after
all the plugins are sourced.

Note that supertab does have a variable that you can set in your .vimrc
that specifies the mapping you would use to insert a literal tab:
g:SuperTabMappingTabLiteral.
The default value for this is ctrl-tab which is pretty close to shift-tab.

On Mon, Sep 17, 2012 at 3:20 PM, Joe Lencioni [email protected]:

It would be nice if there was an easy way to insert a literal tab instead
of triggering auto completion. Other editors have solved this problem by
binding + to insert a literal tab.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49.

from supertab.

ervandew avatar ervandew commented on August 26, 2024

It would be nice if there was an easy way to insert a literal tab instead of triggering auto completion. Other editors have solved this problem by binding <Shift> + <Tab> to insert a literal tab.

<S-Tab> is used for scrolling through the completions in reverse. You can set g:SuperTabMappingTabLiteral to define your own mapping for inserting a literal tab. Note that the default for g:SuperTabMappingTabLiteral (<c-tab>) doesn't work for vim in the terminal because of limitations w/ vim's character input when running in a terminal.

from supertab.

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.