Hi,

carpetemporem wrote:
> Often I delete a range of lines, put them somewhere else and have to
> indent/dedent the pasted lines.
> 
> At the moment I use the number of pasted lines shown to indent/dedent.
> That's ugly.
> 
> Any ideas how to do that efficiently?

you can use

  ]p

or

  [p

to let Vim paste the lines and adjust their indent to the current line.
Or you can use

  =']

to re-indent the previously pasted lines after you have used p or P to
paste them.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

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

Reply via email to