From 3efbd4114e69ffaaeae9e138733ca623636abd9d Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 19 Jun 2016 20:44:35 +0100 Subject: [PATCH] Mutt config for vim users --- README.md | 13 +++++++++++++ vim-keybindings.rc | 31 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 README.md create mode 100644 vim-keybindings.rc diff --git a/README.md b/README.md new file mode 100644 index 000000000..2beeb08c0 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Vim Keybindings + +This Mutt config file sets up some keyboard mappings that make Mutt more +friendly for Vim users. For example: + +- gg Move to top of Index +- G Move to bottom of Index +- dd Delete email from Index + +## Credits + +- Ivan Tham + diff --git a/vim-keybindings.rc b/vim-keybindings.rc new file mode 100644 index 000000000..39f1488aa --- /dev/null +++ b/vim-keybindings.rc @@ -0,0 +1,31 @@ +#------------------------------------------------------------ +# Vi Key Bindings +#------------------------------------------------------------ + +# Moving around +bind browser,index gg first-entry +bind browser,index G last-entry +bind pager gg top +bind pager G bottom +bind pager k previous-line +bind pager j next-line +bind browser,pager,index \CF next-page +bind browser,pager,index \CB previous-page +bind browser,pager \Ce next-line +bind browser,pager \Cy previous-line +bind index \Ce next-line +bind index \Cy previous-line + +bind pager,index dd delete-message + +# Mail & Reply +bind index \Cm list-reply # Does not work ??? + +# Threads +bind browser,pager,index N search-opposite +bind pager,index dT delete-thread +bind pager,index dt delete-subthread +bind pager,index gt next-thread +bind pager,index gT previous-thread +bind index za collapse-thread +bind index zA collapse-all # Missing :folddisable/foldenable -- 2.49.0