X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=blobdiff_plain;f=vimtips.mdwn;h=d77ed92d298b37b4b910ec2bfb8054b0556f915a;hp=bc1952a5b86ecf9c90b098e0292db296f47fa357;hb=HEAD;hpb=c8a7b9a03d48d1562cbde500423fa2ffb2ddf1e0 diff --git a/vimtips.mdwn b/vimtips.mdwn index bc1952a..d77ed92 100644 --- a/vimtips.mdwn +++ b/vimtips.mdwn @@ -3,10 +3,34 @@ Tips for using Notmuch with vim; these may be applicable when using vim with [[notmuch-mutt]], [mutt-kz](https://github.com/karelzak/mutt-kz), or -[notmuch-vim](http://git.notmuchmail.org/git/notmuch/blob/HEAD:/vim/README). +[notmuch-vim](https://git.notmuchmail.org/git/notmuch/blob/HEAD:/vim/README). [[!toc levels=2]] +## Install the vim addon for Notmuch + +Before you can run Notmuch within vim, you must install notmuch as a vim addon. + +For example, if you have installed from the debian package: + + $ sudo apt-get install notmuch-vim + +then to install as an addon, run this command: + + $ vim-addon-manager install notmuch + +## Run Notmuch within vim + +Open vim and type + + :Notmuch + +and press ENTER. Voila. + + +Alternatively, you can invoke vim with the -c flag: + + $ vim -c :Notmuch ## Addressbook management and vim