nvim: keymappings: Add mapping to copy to clipboard
This commit is contained in:
parent
a26efca087
commit
8f5e45cb52
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ remap('c', '<Esc>', '<Nop>', { noremap = true })
|
|||
remap('n', 'Q', '<Nop>', { noremap = true })
|
||||
-- Save
|
||||
remap('n', '<Leader>w', '<Esc>:w<CR>', { noremap = true })
|
||||
-- Copy to clipboard
|
||||
remap('v', '<Leader>y', '"+y', { noremap = true })
|
||||
remap('v', '<Leader>Y', '"*y', { noremap = true })
|
||||
-- Search and Replace
|
||||
remap('n', 'c.', ':%s//g<Left><Left><CR>', { noremap = true })
|
||||
remap('n', '<Leader>c.', ':%s/\\<<C-r><C-w>\\>//g<Left><Left>', { noremap = true })
|
||||
|
|
Loading…
Reference in a new issue