Detrail: a dead-simple command line utility to fix trailing whitespace
1–6 of 6 posts
Re: Detrail: a dead-simple command line utility to fix trailing whitespace
#2sed 's/\s*$//g'
Re: Detrail: a dead-simple command line utility to fix trailing whitespace
#3I 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 c :%s/\s\+$//gRe: Detrail: a dead-simple command line utility to fix trailing whitespace
#4Delete all trailing whitespace in vim:
:%s/\s\+$//Re: Detrail: a dead-simple command line utility to fix trailing whitespace
#5Zero 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
Re: Detrail: a dead-simple command line utility to fix trailing whitespace
#6sed 's/\s*$//g'
Funnily, 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'