Wednesday, September 8, 2010

Re: shifting paragraphs by one space

On 09/08/10 11:46, sandeep kapse wrote:
> I know these thing.

It would help if you mentioned that in your initial post.

> Actually I need the shift width size of 4.
> I don't want to change again and again
> while processing text.
> May time I need to move set of line to the left or right just by one place.
> Is there other way of doing the thing other than changing shift width ?

You can use visual-block mode and then use I (capital-eye) to
insert a single space:

control+V
(select the beginnings of the lines you want)
I
<space>
<esc>

To dedent instead of indent, you can use visual-block mode to
select the first column of the rows you want to dedent, and then
just hit "x" or "d" to delete the space character.

Note that if you source the oft-(well-)maligned mswin.vim, you'll
use control+Q instead of control+V for visual-block mode.

-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