diff options
author | Matthew Lemon <y@yulqen.org> | 2023-05-31 10:08:07 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-05-31 10:08:07 +0100 |
commit | c79784622aff8a3800bccda2a10541636a7b24ac (patch) | |
tree | 7d965e52987b017c165d60044ee77e16ba9bd4e7 /nvim-using-vimrc/init.vim | |
parent | c8fcc6b72672d54433e12a8c0480b22beb577108 (diff) |
Quick remap so x does not bork clipboard
Diffstat (limited to 'nvim-using-vimrc/init.vim')
-rw-r--r-- | nvim-using-vimrc/init.vim | 6 |
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> |