Remove all arbitary spaces before a line in Vim

前端 未结 9 2295
感动是毒
感动是毒 2020-12-01 02:56

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:

<
9条回答
  •  甜味超标
    2020-12-01 03:27

    A simple search/replace s/^\s*// should do the trick, but it's probably not the minimal version.

提交回复
热议问题