Delete leading spaces vi amit - 28 Sep 2010 You can delete leading spaces in vi editor using the following command : :%s/^\s\s*//g