Am 04.11.2010 16:52, schrieb rameo:
I find myself often to align blocks of text and thought to create a
regex to remove all leading spaces in a block.

p.e.

           text a
            text b
               text c
            text d

I would like to select a visual block around these 4 pieces of text
and remove
all leading spaces, how can I do this?
- I can't use "^" because it aligns the block at the beginning of the
line.

Another possibility is to left align the text in the selection but I
have not found any command to do this.

I checked also the align plugin but it didn't do what I wanted to do.

Thanks in advance.
Rameo

You can use the shift key "<" from Visual block mode.  Type it once,
then repeat with "." as needed.
Shifting text will stop at the leftmost column of the visual area.

--
Andy

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