]> granicus.if.org Git - neomutt/commitdiff
Mutt config for vim users
authorIvan Tham <pickfire@riseup.net>
Sun, 19 Jun 2016 19:44:35 +0000 (20:44 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 19 Jun 2016 19:44:35 +0000 (20:44 +0100)
README.md [new file with mode: 0644]
vim-keybindings.rc [new file with mode: 0644]

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..2beeb08
--- /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 <pickfire@riseup.net>
+
diff --git a/vim-keybindings.rc b/vim-keybindings.rc
new file mode 100644 (file)
index 0000000..39f1488
--- /dev/null
@@ -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