Saturday, January 21, 2012

Re: Shift column right by spaces?

On Sat, Jan 21, 2012 at 07:54:12AM -0900, Tim Johnson wrote:
> I'm using MacVim 7.3 on OSX 10.7 (Lion)
> As well as (g)vim 7.~ on ubuntu.

> I would like to be able to move a column right by an arbitrary
> numbers of spaces, regardless of the value of `shiftwidth'.

> Is that possible?

many ways -- probably the simplest:

- position the cursor at the left/top of the column you want
to move
- press ctrl-v to enter visual mode
- cursor down with the relevant motion command however long
your column is
- press I
- enter as many spaces as you want
- press ESC and the rest of the lines will get their spaces

sc

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