Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to 'tab backwards' (remove a tab or tab spaces) in Vim?

Tags:

vim

Is there a fast way to tab backward without pressing backspace (however many number of spaces for which I've set my tab space)?

like image 952
Hien Avatar asked Dec 30 '10 04:12

Hien


People also ask

How do you backspace a tab?

Check your Options. You can use (Tab) key either to automatically indent a paragraph or to demote a paragraph to the next outlined level. You can use (Shift + Tab) or (Backspace) to remove an indent or to promote a paragraph to the previous outlined level.


1 Answers

If you're in insert mode:

  • Ctrl+d - shift left
  • Ctrl+t - shift right

If you're in normal mode:

  • Shift+<< - shift current line left
  • Shift+>> - shift current line right

If you're in visual mode and have 1 or more lines selected:

  • < - shift selection left
  • > - shift selection right

If you mean just to move backwards a word in normal mode, you can use b to go backwards a word.

like image 104
Ted Naleid Avatar answered Sep 23 '22 14:09

Ted Naleid