Tuesday, July 24, 2012

Re: i cannot unindent a block

On 07/24/12 08:17, mascip wrote:
> i can indent a selected block by pressing
> <TAB> or >
> and i'm pretty sure i used to be able to unindent with
> <SHIFT>-<TAB> or <
> But now it doesn't work anymore

By default, <tab> and <shift-tab> don't indent/dedent in normal or
visual mode (also, <shift-tab> isn't seen by all versions of Vim,
depending on whether your terminal emulator passes it along or not).

By default, the < and > should dedent/indent. In visual-mode, they
should work by themselves. In normal-mode, they require a {motion}
afterward (including text-objects). In insert-mode, you can use
control+T and control+D to indent/dedent the current line regardless
of position.

:help >
:help v_>
:help i_CTRL-T
:help i_CTRL-D

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment