-
Notifications
You must be signed in to change notification settings - Fork 307
modify .vimrc on control node to help view hidden characters #232
Comments
This can be achieved by adding:
to |
@dswhitley can you attach a screenshot or link to something so I can see what I am supposed to be seeing, I added this and didn't notice anything right away
Yeah but we are already using templates, so we would need a files directory and if we ever did use a variable or jinja2 we would have to flip it back. I don't see an advantage right now in moving it around |
I will see if I can show this better but in the meantime, did you execute the I wonder if this is dependant on the version of vim..? |
The special characters are easily modified (as specified in the .vimrc file), but here is a snippet of what it looks like as defined above:
My thought was that it would be configured on the control node, but not called out in the presentation. That way it wouldn't always be in the customers face, but if they ask for help troubleshooting their playbooks, we could inform them to "type FULL DISCLOSURE: I had intended on proposing this change in a pull request but couldn't get to it immediately. I'm still figuring out the ideal workflow with git. In the future would it be preferable for me to make the change, create the pull request, and then have this sort of conversation in the pull request? |
Like the other ansible projects we use the gitflow workflow. Clone from lightbulb to your personal account (or rebase if you have one). Clone to your workspace. Create feature branch, make your changes, add/commit, push to your github repo then issue a PR to lightbulb from there. Also, we now support nano now. Would be nice to see how we can implement something like this for those people. |
The As an alternative, I have considered modifying the spacehi vim plugin to highlight spaces at the beginning of a line, but realized that it would be no different than instructing students to enter |
@tima inserting a character for whitespaces in nano can be accomplished by:
That will result in the following:
I'm happy add this file as a template and update the Speaker Notes in ansible-essentials.html, but should I open a separate issue and then pull request for that? This issue is diverging a bit. |
@dswhitley If it's not too much trouble, why not submit a PR and we can discuss there? I don't think this issue is going to go any further without that. |
During workshops, a lot of time is spent troubleshooting YAML files. This might be easier if hidden characters are visible in vim. A
.vimrc
file is already being populated on the control node fromlightbulb/tools/aws_lab_setup/roles/control_node/templates/vimrc.j2
which seems to be an appropriate place to add this..?Also, there is nothing node-specific in this template, so should/could it use the
file
module to deploy instead oftemplate
?The text was updated successfully, but these errors were encountered: