Remove all arbitary spaces before a line in Vim

Posted by Farslan on Stack Overflow See other posts from Stack Overflow or by Farslan
Published on 2011-01-07T12:47:34Z Indexed on 2011/01/07 12:53 UTC
Read the original article Hit count: 129

Filed under:
|

I'v written a plugin where it comes to parsing a XML tag. The content inside the tag is indented and when i copy the parsed string into the file it's gettting like:

    Example line
        This is part of the parsed line
        Thats goes one
    End of line

What I want is to remove all spaces in front of these lines, the final text should be

Example line
This is part of the parsed line
Thats goes one
End of line

I've tried to use = but it doesn't work the way U want. How can I do that with minimal key strokes ?

© Stack Overflow or respective owner

Related posts about vim

Related posts about indentation