Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim smart tabbing

Tags:

vim

tabbing

In emacs, whenever tab is pressed, the cursor moves to the appropriate location on the current line. However, in vim, this does not happen, the tab is a given length and will go that far every time I press tab. Is there a way to enable "smart tabbing" in vim?

like image 825
mcwillig Avatar asked Oct 12 '22 02:10

mcwillig


1 Answers

I'm not exactly sure what behavior you expect, but this is probably it.

:set smarttab

Also consider setting:

:set smartindent
:set autoindent
like image 87
Caleb Avatar answered Nov 08 '22 08:11

Caleb