Friday, September 21, 2018

Re: What is the quickes way to delete spaces in front of each line?

On 09/20/2018 09:32 PM, Tim Chase wrote:
> On 2018-09-20 20:07, Michael Henry wrote:
>> On 09/19/2018 11:36 AM, Tim Chase wrote:
>>> or the visual selection
>>>
>>> :'<,'>le
>>
>> Adding to Tim's suggestion: if you are going to change the
>> indentation on the entire paragraph, then ``vip`` is an easy way
>> to select the lines of interest without counting; then typing
>> ``:%le`` will automatically use the visual range because Vim
>> will insert the line range ``'<,'>`` for you.
>
> Just a tweak: If you're using visual mode, you don't want to type
> the "%", just the ":le".

Oops - quite right, thanks for the correction :-)

Michael Henry

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment