Vim equivalent to Emacs C-i?
- by Culip
Does Vim have a command equivalent to Emacs' Ctrl-I?
Emacs has an extremely useful shortcut "C-I" which fixes indentation of the current line (or selected lines.)
For example, suppose you write this tiny code on Emacs:
def foo
print "boo"
end
and you are selecting the whole 3 lines. You press "C-I" then the code becomes
def foo
print "boo"
end
I can use this in quiet mode i.e. ignoring. Emacs as well. Does anyone know how to do this on Vim?