Nicolas Weber wrote:
Hi,

You are correct, I was thinking of this the other way around. My suggestion would only be "security" in the sense that someone reading over your shoulder would be prevented from seeing sensitive content in the file (e.g. passwords) and would really only be an extension to folding. No change would be made to the file on disk (e.g. the file would need to be secured on disk using some other external mechanism).

this can already been done with g?$ (or g?a{ )...so if you only want to protect your data from people looking over your shoulders, that's already there.

Nico


Nicolas,

Thanks for the feedback, I wasn't even aware of this feature. My only concern here is that it appears to change the buffer contents (not just the view). A subsequent w will write this change to disk -- a possibly undesired result. Also, executing such a command on a password while someone is watching only brings attention to the password, which appears in clear text until the command sequence has been completed (where-as folding can be applied automatically when the file is opened, and each fold remains closed until explicitly opened).

This is such a rare scenario, however, that I think I'm over-analyzing it. Vim works great for me exactly as it is. :o)

-Robert

Reply via email to