Last Comment Bug 769585 - Fix vim modelines
: Fix vim modelines
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: General (show other bugs)
: Trunk
: x86 Mac OS X
: -- normal (vote)
: mozilla16
Assigned To: Justin Lebar (not reading bugmail)
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-29 03:05 PDT by Justin Lebar (not reading bugmail)
Modified: 2012-06-30 12:45 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Justin Lebar (not reading bugmail) 2012-06-29 03:05:11 PDT
We have a number of invalid Vim modelines in Gecko.  These are really annoying; Vim throws a fit when you try to open one of these files.

$ hg locate | xargs grep 'vim\s*:[^:]*$' | grep -v '\<set\>'
Comment 1 Justin Lebar (not reading bugmail) 2012-06-29 03:11:18 PDT
Hm, that's not quite the right search string...
Comment 2 Justin Lebar (not reading bugmail) 2012-06-29 03:27:10 PDT
I think this is better...

  $ git grep 'vim:.*:' | grep -v 'set' | grep -v ':\s*$'

or if you prefer

  $ hg locate | xargs grep 'vim:.*:' | grep -v 'set' | grep -v ':\s*$'
Comment 3 Justin Lebar (not reading bugmail) 2012-06-29 04:41:55 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/5344832c40ce
Comment 4 Ryan VanderMeulen [:RyanVM] 2012-06-30 12:45:52 PDT
https://hg.mozilla.org/mozilla-central/rev/5344832c40ce

Note You need to log in before you can comment on or make changes to this bug.