X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=contrib%2Fabook%2Bvim%2FREADME;fp=contrib%2Fabook%2Bvim%2FREADME;h=ad81c3a503e246ef6b27d42537f3022ba1bd4daa;hb=9d28f71348269e7075d0ff5c0b7ae4e05f358304;hp=0000000000000000000000000000000000000000;hpb=c0b0c6c7a0971525558239e544212589fbbac58b;p=pkg%2Fabook.git diff --git a/contrib/abook+vim/README b/contrib/abook+vim/README new file mode 100644 index 0000000..ad81c3a --- /dev/null +++ b/contrib/abook+vim/README @@ -0,0 +1,57 @@ +NOTE: There's no need to patch abook version 0.4.14 or later. +NOTE2: The command in abook is 'Q' not 'P'. + +--- Original message from Brian Medley --- +Hi, + +I am trying to make abook work better (for me) within vim. I am doing +this because I have 'autoedit' and 'edit_headers' set in mutt. This +means I would like to have easy access to my abook addressbook (from +within the editor). + +To accomplish this I have written a vim plugin (it will need vim 6.0) +and have patched abook. Both are included. The patch is against abook +0.4.13. + +Amongst other things, they allow me to obtain an address listing from +abook and perform a mutt query using abook. Below is an example. + +Suppose I have the following line (the cursor is at the caret): + To: + ^ +I can now hit '\al' to lauch abook. Once inside, I can highlight the +people I want to email. Then I hit 'P'. Their email addresses now +appear. Next, suppose I have: + To: john + ^ +My plugin allows the command '\aq' to perform an alias mutt query using +abook. It uses the word under the cursor, so "john" will be looked up +inside of abook. Next, his email address will appear. + +Summary: + \aq => alias query + \al => alias list + +Note: + - \ is actually LocalLeader + - I am aware that abook can do these things from within *mutt*, but + I want to do them from within vim. + - This plugin does other stuff, as well (like deleting signatures, + and positioning the cursor when you start) because I stole code + from Cedric Duval's mail vimrc. + - Improvements / comments are welcome. + +Todo: + - Documentation :) + - I tried to write this so that another alias query program could be + used (e.g. ldap), but I have not implemented this. + +Bugs: + - I had trouble getting this to work in gvim. I used vim in a + console. + +Basic Installation: + - patch and install abook + - place the mail.vim plugin in ~/.vim/after/ftplugin + +--- ---