Here's how to remove trailing spaces. :%s/\s\+$//e You can automatically remove trailing spaces every time you save a file by adding an autocmd to your vim config. autocmd BufWritePre * :%s/\s\+$//e This sets up an automatic command to run before w...
sammaji.com1 min read
No responses yet.