I started using SuperTab recently, but I want to use Ctrl-space instead of Tab.
My problem is that I often use Tab to add indentation inside comments, but SuperTab starts completion. I know I can use Ctrl-V Tab, but that’s clumsy (especially since I don’t use Tab for completion).
I tried adding this in my vimrc…
let g:SuperTabMappingForward = '<c-space>'
let g:SuperTabMappingBackward = '<s-c-space>'
…and that allows me to use C-space, but Tab still does autocomplete. I want to use Tab to insert indentation and never completion.
I’m using SuperTab continued.
I started using SuperTab because I want context-sensitive completion with Eclim (Eclipse + Vim). I set this:
let g:SuperTabDefaultCompletionType = 'context'
And SuperTab switches between text completion and user-defined (eclim) completion (for member functions and variables) as appropriate. If there’s a simpler way to do this, then that would be an acceptable solution.
Judging strictly from the documentation, you may be able to get this effect by also setting
g:SuperTabMappingTabLiteralto<Tab>.Edit: I was able to test this in gvim this morning with positive results. Setting this setting in conjunction with the two mentioned in your post allowed me to insert literal tab characters with
<Tab>and do completion with<C-space>.