4 ms·
the only reason to use spaces over tabs is if your tab key broke and you can't map it to a double-tap space (yeah, I did that once). /thread
by brod 10y ago
the only reason to use spaces over tabs is if your tab key broke and you can't map it to a double-tap space (yeah, I did that once). /thread
- 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.