aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Katterjohn <katterjohn@gmail.com>2020-06-23 17:25:15 -0400
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-04-18 23:20:22 +0200
commit3cd5aa6f25416adbe87d468c69aebd3eec653175 (patch)
tree54419d1c8c1319c7d156374f2db498e95b0ab3fe
parent76a104dd87252f8b1107fe3fc1d3eb5ae45bcc55 (diff)
Add ex commands for closing tabs
-rw-r--r--evil-maps.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/evil-maps.el b/evil-maps.el
index e3f2651..31d486e 100644
--- a/evil-maps.el
+++ b/evil-maps.el
@@ -554,6 +554,8 @@ included in `evil-insert-state-bindings' by default."
(when (featurep 'tab-bar)
(evil-ex-define-cmd "tabnew" 'tab-bar-new-tab)
+ (evil-ex-define-cmd "tabc[lose]" 'tab-bar-close-tab)
+ (evil-ex-define-cmd "tabo[nly]" 'tab-bar-close-other-tabs)
(evil-ex-define-cmd "tabn[ext]" 'tab-bar-switch-to-next-tab)
(evil-ex-define-cmd "tabp[revious]" 'tab-bar-switch-to-prev-tab))