3 ms·
Detrail: a dead-simple command line utility to fix trailing whitespace
- samgd 10y agosed 's/\s*$//g'
- joshka 10y agoFunnily, that doesn't work as expected on OS X due to a rather old version of sed installed by default that doesn't support \s. Try the following instead: sed 's/[[:blank:]]*$//g'
- lisperforlife 10y agoI use the following two lines to highlight extra white spaces and clean them with a leader shortcut on vim. highlight ExtraWhitespace ctermbg=red guibg=red noremap <Leader>c :%s/\s\+$//g<CR>
- miles 10y agoDelete all trailing whitespace in vim: :%s/\s\+$//
- stephenr 10y agoZero dependencies... Except nodejs, which on Debian has about 60 dependencies from memory. this is the problem I have with the nodejs community. I first learnt to write code using php. I still use php but that doesn't mean I don't also use shell scripts, lua, JavaScript, hell sometimes even Java. Just because you can do something in nodejs, doesn't mean you should