Hi, On 9/19/18 3:53 PM, Igor Forca wrote: > Hi, > > I lot of times I have text something like: > > Sample: > ----Lorem ipsum dolor sit amet, > --consectetur adipiscing elit, > --------sed do eiusmod tempor > ---incididunt ut labore et dolore > ---magna aliqua. > > Note: Characters "-" symbolizes spaces. > > > I need to delete spaces in as quicker way as possible. > > Now I do it with command "delete to character" and move down cursor like: > dtL > j > dtc > j > dts > j > dti > j > dtm > > Is there a quicker way? > > What would be nice is to have "some command" and then just use j. to move > cursor down and repeat the command.
Try "dw". > > P.S. I know there is ed command: 1,5s/^\s\+// but this is difficult to type > quickly and requires a lot of thinking. Using some normal command and > repeating j. would be much simpler to think and edit. Check "gq" (:help gq). > Thanks > -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
