So I was looking for a way of indenting multiple lines in vim and someone suggested doing
:map <Tab> <
and all it does is insert the <
character whenever I press tab (How did I not see it happen). I tried to do :map <Tab> <Tab>
and :map <Tab> \t
to bring back regular indenting, with no success. I am new to vim
key mapping so I would really appreciate help. Also if someone could point out how to indent multiple lines in vim
, that would be awesome.
Thanks in advance!
Best Answer
:unmap <Tab>
to get the default behavior back.use
:x>>
to indent x number of lines (from where the cursor is)