Loading ...
Sorry, an error occurred while loading the content.

Re: [jslint] Re: Unexpected ' '.

Expand Messages
  • Michael Mikowski
    ... Add this to your .vimrc and then type ;k anytime you want to klean : =====[ klean - removes trailing whitespace ]===== map ;k :%s? s +$??
    Message 1 of 9 , Sep 21 12:53 PM
    • 0 Attachment
      If anyone besides me is using vim:


      :%s?\s\+$??g

      Add this to your .vimrc and then type ;k anytime you want to "klean":
      "=====[ klean - removes trailing whitespace ]=====
      map ;k :%s?\s\+$??<CR>




      ________________________________
      From: Rob Richardson <erobrich@...>
      To: jslint_com@yahoogroups.com
      Sent: Wednesday, September 21, 2011 12:27 PM
      Subject: RE: [jslint] Re: Unexpected ' '.


       
      This works nicely for me:

      #!/bin/sh
      cat - | sed s/[ \t]+$//g > &1

      Rob






      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.