4 ms·
> map it to a double-tap space How do you do that?
by Bromskloss 10y ago
> map it to a double-tap space
How do you do that?
- asQuirreL 10y agoIn vim, adding the following to your .vimrc should do it: inoremap <Space><Space> <Tab>
- nerdponx 10y agoOr just `set expandtab`...
- asQuirreL 10y agoThat would be more like inoremap <Tab> <Space><Space> The request was: when I press two spaces, I want a tab character to be inputted. I agree that if you want `n` spaces when the tab key is pressed, you should use `expandtab` and `shiftwidth`.
- nerdponx 10y agoAh, quick/lazy reading. Sorry. Of course now my question is why in the seven hells would you want that mapping??
- Bromskloss 10y agoThe premise was that the tab key was broken.