From bbf8d18d092f46b3eacbb3e02ac002d6cb843466 Mon Sep 17 00:00:00 2001 From: Midgard <2885-Midgard@users.noreply.framagit.org> Date: Wed, 3 Jul 2024 15:28:16 +0200 Subject: [PATCH] [nvim] Recognize :x in edit mode Along with pre-existing :w and :q --- nvim-init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/nvim-init.vim b/nvim-init.vim index 3a79875..b302f50 100644 --- a/nvim-init.vim +++ b/nvim-init.vim @@ -181,6 +181,7 @@ command W :execute ':silent w !sudo tee % > /dev/null' | :edit! noremap m ` inoremap :w :w +inoremap :x :x inoremap :q :q " Consistent aliases to jump to first non-whitespace character and last character