From c79784622aff8a3800bccda2a10541636a7b24ac Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 31 May 2023 10:08:07 +0100 Subject: Quick remap so x does not bork clipboard --- nvim-using-vimrc/init.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nvim-using-vimrc') diff --git a/nvim-using-vimrc/init.vim b/nvim-using-vimrc/init.vim index dca41b4..7131727 100644 --- a/nvim-using-vimrc/init.vim +++ b/nvim-using-vimrc/init.vim @@ -127,6 +127,12 @@ if (exists("*strftime")) noremap time "=strftime("%X")p7h endif " + +" Prevent x and delete key from overriding what's in the clipboard +noremap x "_x +noremap X "_x +noremap "_x + " Execute the current line with BASH. noremap rl :.w !bash -- cgit v1.2.3