You can use any vim plugin manager:
% git clone https://github.com/felipec/notmuch-vim.git ~/.vim/pack/plugins/start/notmuch-vim
Make sure your vim version has ruby support: check for +ruby in 'vim --version' features.
% vim --version | grep +ruby
Check if you are able to run the following command cleanly:
% ruby -e "require 'notmuch'"
If you don’t see any errors it means it’s working and you can go to the next section, if not, you would need to compile the bindings yourself, or contact your distribution so they package notmuch correctly.
Simple:
% gvim -c ':NotMuch'
You might want to write a wrapper script (e.g. vnm
)
#!/bin/sh gvim -c ":NotMuch $*"
So you can run:
vnm is:inbox date:yesterday..
Enjoy ;)