Vim equivalent to Emacs C-i?

Posted by Culip on Super User See other posts from Super User or by Culip
Published on 2010-09-23T20:12:15Z Indexed on 2012/06/26 21:20 UTC
Read the original article Hit count: 160

Filed under:
|
|
|

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?

© Super User or respective owner

Related posts about vim

Related posts about keyboard-shortcuts