6 ms·
Just use a capable editor. It's 2014, for heaven's sake!
by eq- 13y ago
Just use a capable editor. It's 2014, for heaven's sake!
- X-Istence 13y agoThe problem occurs when you are SSH'ed to a machine you are setting up, or one that is customer owned, you use whatever editor is around to make a quick edit, not realising that the file labeled .conf is actually a YAML file, you hit tab because it makes logical sense and then shit breaks. No thanks, YAML is a terrible choice for configuration files.
- derefr 13y agoAll YAML files are required to begin with "---". If you're aware of what YAML is, and you've seen YAML ebfore, and yet you somehow "aren't aware" that something is a YAML file, you're incompetent.
- X-Istence 13y agoThere is no requirement for a YAML file to begin with "---". Look at the database.yml files that come with Rails applications, or look at the +MANIFEST file that pkgng requires on FreeBSD. Those are yaml files, no triple dashes. Calling me incompetent isn't helping your case either.
- GeneralMayhem 13y agoIf you're connecting to a machine over SSH and you're making enough changes that it's going to be difficult to maintain an indentation scheme, open it up on a local editor with SFTP. Emacs supports it out of the box, and Sublime has an excellent nagware SFTP package in the standard repos.