aboutsummaryrefslogtreecommitdiffstats
path: root/nvim-using-vimrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-05-31 10:08:07 +0100
committerMatthew Lemon <y@yulqen.org>2023-05-31 10:08:07 +0100
commitc79784622aff8a3800bccda2a10541636a7b24ac (patch)
tree7d965e52987b017c165d60044ee77e16ba9bd4e7 /nvim-using-vimrc
parentc8fcc6b72672d54433e12a8c0480b22beb577108 (diff)
Quick remap so x does not bork clipboard
Diffstat (limited to 'nvim-using-vimrc')
-rw-r--r--nvim-using-vimrc/init.vim6
1 files changed, 6 insertions, 0 deletions
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 <silent> <leader>time "=strftime("%X")<CR>p7h
endif
"
+
+" Prevent x and delete key from overriding what's in the clipboard
+noremap <silent> x "_x
+noremap <silent> X "_x
+noremap <silent> <Del> "_x
+
" Execute the current line with BASH.
noremap <silent> <leader>rl :.w !bash<CR>