Tim Chase wrote:
>> http://vim.wikia.com/wiki/Super_Retab
> ...
> My vote is to scrap it and use my above commands :)

Thanks Tim. After pondering, I can understand your code! It does seem
that someone contributed the "solution" I posted, but it is actually
broken.

What do you think of the first solution in the tip (one line):

command! -range=% -nargs=1 Space2Tab
 <line1>,<line2>s/\v%(^ *)@<= {<args>}/\t/g

The point of this is that you may edit some code using two-space
indents, and you want to entab (only at left-margin), so you select the
code and use command:

  :'<,'>Space2Tab 2

It looks good to me (confirmed with a couple of ultra simple tests).

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to