From 72b9fa501885b4480be0e57d2963c565a7880857 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Sat, 17 Jul 2021 09:08:45 +0530 Subject: [PATCH] mappings: Use ESC to clear search highlighting and to get out of terminal insert mode --- lua/mappings.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/mappings.lua b/lua/mappings.lua index fb52afb9..e04c1373 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -133,3 +133,9 @@ map("n", "", ":bd!", opt) -- close tab -- move between tabs map("n", "", [[BufferLineCycleNext]], opt) map("n", "", [[BufferLineCyclePrev]], opt) + +-- use ESC to turn off search highlighting +map("n", "", ":noh", opts) + +-- get out of terminal with ESC +map("t", "", "", opts)