-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange # vim: set et ts=4 sw=4:
comments at the end of some scrips
#1844
Comments
@jsmeix these directives tell vim to automatically adjust when editing the file:
Since most of ReaR's code is indented using these settings, keeping that would be nice to avoid messing up the files. |
@rmetrich |
@gdha @gozora @schabrolles Schouldn't then such a trailing comment line # vim: set et ts=4 sw=4: be appended to every ReaR script? |
Honestly I didn't know about this feature, but I'd personally prefer to keep editor settings out of source code mainly because other users might appear with different editors storing another set of "meta-data" which could lead to mess... V. |
As you wish, although such metadata is widely used among projects, e.g. mariadb, sos, ruby, rsyslog, gnutls, NetworkManager, ... Even in rear, it is already used in packaging/arch/PKGBUILD. |
Don't get me wrong Renaud, I'm not going to fight to keep this away from ReaR source code, if you guys think this is a useful idea, let's keep it, no problem with that from my site. V. |
I hope such comments cannot cause real trouble (because they are only comments) |
I can answer to "what is the right editor" ;-) |
My editor is the only right one that is used by real hard men ;-) |
@jsmeix |
likely, at his time there was only that ;-) |
or even maybe his editor was a puncher, for punch cards ;-) |
@gozora |
@rmetrich |
I think this issue is sufficiently discussed so that I can close it |
In current ReaR master code some scripts have a last line
which got added by @rmetrich via
b184194
and
84f03a4
I.e. in current ReaR master code there is
I guess this is some special automatism by the
vi
editor.@rmetrich
could you explan the reason behind
and whether or not I should remove them
or if it makes sense to have those trailing comment lines.
The text was updated successfully, but these errors were encountered: