Wednesday, September 8, 2010

RE: formating

sandeep kapse wrote:
> I have to shift the following text to left or right with just
> one place (space)

It would be best to ':setlocal' for this buffer:

:setl sts=1 sw=1 et

That's softtabstop and shiftwidth 1 character, expand tabs
(assuming you want only spaces for indents.

With the cursor in a paragraph, type following to indent:
>ip

Indent inner paragraph. Press . to repeat or u to undo.
Or, if have selected several lines, press > to indent.

John

--
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