file (add some whitespace to each line when testing):
private bla() {
sdfkljsdlkfj sdkl fjask ljakl sjdfkl jkl
}
open vim with that file and make sure that you have the whitespace saved.
now open vim and have lessspace enabled. run :%s/private/public/<CR> and now the whitespace is stripped from every line, not just the 1st line (which would be the ideal behaviour)