We can remove all lines that has leading spaces, the rest lines will have no leading spaces. 1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'search for pattern' to:
3. click 'replace', all lines that has leading space(\s) will be removed.