sponsor Vim development Vim logo Vim Book Ad

apg.vim : Auto generate and append password

 script karma  Rating 1/1, Downloaded by 566  Comments, bugs, improvements  Vim wiki

created by
schizo bovine
 
script type
ftplugin
 
description
My first attempt a vim script. Runs the apg(1) program (apt-get install apg, http://www.adel.nursat.kz/apg/download.shtml) and appends a randomly generated password to the end of the current line.

Passwords are unpronounceable and random, though I exclude some special symbols -- those that break "words" when double-clicking in an xterm (makes copy-pasting passwords for login easier).

Since I store my passwords in a GnuPG encrypted file, I added a binding for F12 that actives when opening .gpg, .pgp, or .asc files.
 
install details
Yes, I realize this is INCREDIBLY special purpose. :)

For the curious, here is the set of printable characters I determined that break the word-detection selection of xterm:

"$'()*;<=>[\]^`{|}
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
apg.vim 0.00001 2011-11-16 7.0 schizo bovine Initial upload
ip used for rating: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github