diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 1ec20d0..263d903 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -9,6 +9,9 @@ remap('c', '', '', { noremap = true }) remap('n', 'Q', '', { noremap = true }) -- Save remap('n', 'w', ':w', { noremap = true }) +-- Copy to clipboard +remap('v', 'y', '"+y', { noremap = true }) +remap('v', 'Y', '"*y', { noremap = true }) -- Search and Replace remap('n', 'c.', ':%s//g', { noremap = true }) remap('n', 'c.', ':%s/\\<\\>//g', { noremap = true })