4 ms·
$ vim passwords.gpg I configured vim to a) automatically pipe *.gpg through gpg on open and write, b) to not keep viminfo, swap files or undo history for the
by raimue 12y ago
$ vim passwords.gpg
I configured vim to
a) automatically pipe *.gpg through gpg on open and write,
b) to not keep viminfo, swap files or undo history for these files, and
c) to close automatically if I leave this file open for longer than 10 seconds without cursor movement.
This modeline at the top of the file hides everything besides the first indentation level:
# vim:set foldenable foldmethod=indent foldclose=all foldlevel=0 foldminlines=0 foldtext='\ \ (hidden)' fillchars+=fold\:\ :
I have been using this approach for years. There might be better alternatives now, but this still works for me. I admit this is not perfect, as I still need to look at the password in plaintext for copy and paste operations.
- fj8pPoh1Jq4m 12y agoWould you mind sharing how you got 'b' & 'c' to work?