Comments (4)
Hmm, seems to work fine for me. Do you have paste
(:set paste?
) enabled in your command window?
from supertab.
from supertab.
I figured it out somewhat. Fist thing is that we may use different compilations of vim:
"When Vim was compiled without the +cmdline_compl feature only file names,
directories and help items can be completed. The number of help item matches
is limited (currently to 300) to avoid a long delay when there are very many
matches."
I finally noticed I have this behaviour for :imap <Tab>
In a normal window:
i <Tab> <Plug>SuperTabForward
In the command line window:
i <Tab> @<C-X><C-V>
i <Tab> <Plug>SuperTabForward
Then I found the exactly same, unresolved problem that I face:
https://groups.google.com/forum/#!topic/vim_use/EX93BOy4XZM/discussion
QUOTE
I am trying to disable the default mapping for the tab key to @A in command window. according to :h command-line-window, adding the following two lines in .vimrc should do the job but it doesn't to my test.
au CmdwinEnter [:>] iunmap
au CmdwinEnter [:>] nunmap
below is the min repo vimrc I observed this behavior.
set nocompatible
au CmdwinEnter [:>] iunmap
au CmdwinEnter [:>] nunmap
once in command window (either by : then ctrl-f, or q: in normal mode), :map still shows "n @A", which conflicts/overwrites my other mapping for the tab key.
set wildchar= seems to avoid the default mapping, but I do want to use tab for auto-completion in vim. I also tried tightening the scope of non-tab wildchar with
au CmdwinEnter [:>] set wildchar=
au CmdwinLeave [:>] set wildchar=
but this doesn't work either.
meanwhile, with vim help recommended setting, I always got this error on entering command window:
Error detected while processing CmdwinEnter Auto commands for "[:>]":
E31: No such mapping
Press ENTER or type command to continue
it feels like by the time CmdwinEnter is triggered, the default tab mapping is not injected yet, and somehow it comes in at a later phase, but still before my "set wildchar=" takes effect, which is really confusing.
how can I disable them permanently? I am on vim 8.0.1420. thanks.
END OF QUOTE
from supertab.
As inspect it further, I can see that <S-Tab>
is not affected by this, as I understand, broken vim behaviour. So this solves the issue for me: I will go with shift tab always.
from supertab.
Related Issues (20)
- Mirror-like auto-completion pop-up when there is no space above the cursor!
- vim writes 4 spaces instead of a tab when supertab is installed HOT 4
- Tab inserts the highlighted word
- Inconsistency with inserting highlighted word HOT 1
- Remap tab when no completion is active HOT 2
- Toggle supertab plugin HOT 1
- Completion seems to offer key word in preference to omni completion HOT 1
- E432: Tags file not sorted: tags HOT 1
- Make tab cycle through completions
- Using mac os native command+tab to swap between elements enters in fast loop
- Supertab don't complete local path HOT 1
- Disable for a filetype HOT 3
- How to complete function name without '(' char? HOT 1
- On-the-fly completion HOT 1
- Supertab shows other suggestions as OmniComplete HOT 1
- Missing highlight update in popup completion menu HOT 4
- Select the last item when pressing Tab HOT 2
- [feature request] - incremental/partial completion instead of longest/complete match HOT 1
- Suptertab chaining is not working with neovim LSP HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertab.