Nvim : Add <Leader>y to copy to the sys clipboard.

This commit is contained in:
Dmitry Voronin 2024-01-31 01:45:45 +03:00
parent 3744c163d4
commit d125b338bb

View file

@ -6,16 +6,12 @@ function bye()
vim.cmd[[qa!]]
end
rekey_normal('<Leader>.', '@:') -- repeat command.
rekey_visual('<Leader>.', '@:') -- repeat command.
rekey_normal('zz', '<cmd>wa<cr>') -- save all files.
rekey_normal('<Leader>z', '<cmd>lua bye()<cr>') -- save & quit all.
rekey_normal('<Leader>v', 'v') -- visual select (duplicate).
rekey_normal('gh', '0') -- go left.
rekey_normal('gl', '$') -- go right.
rekey_normal('gj', 'G') -- go bottom.
rekey_normal('gk', 'gg') -- go top.
rekey_normal('U', '<C-r>') -- redo.
rekey_normal('<Leader>.', '@:') -- Repeat command.
rekey_visual('<Leader>.', '@:') -- Repeat command.
rekey_normal('zz', '<cmd>wa<cr>') -- Save all files.
rekey_normal('<Leader>z', '<cmd>lua bye()<cr>') -- Save & quit all.
rekey_normal('<Leader>v', 'v') -- Visual select (duplicate).
rekey_normal('<Leader>y', '"+y') -- Copy to system clipboard.
rekey_normal(';', ':') -- remap ; to :.
rekey_visual(';', ':') -- remap ; to :.