Nvim : Add <Leader>y to copy to the sys clipboard.
This commit is contained in:
parent
3744c163d4
commit
d125b338bb
|
@ -6,16 +6,12 @@ function bye()
|
||||||
vim.cmd[[qa!]]
|
vim.cmd[[qa!]]
|
||||||
end
|
end
|
||||||
|
|
||||||
rekey_normal('<Leader>.', '@:') -- repeat command.
|
rekey_normal('<Leader>.', '@:') -- Repeat command.
|
||||||
rekey_visual('<Leader>.', '@:') -- repeat command.
|
rekey_visual('<Leader>.', '@:') -- Repeat command.
|
||||||
rekey_normal('zz', '<cmd>wa<cr>') -- save all files.
|
rekey_normal('zz', '<cmd>wa<cr>') -- Save all files.
|
||||||
rekey_normal('<Leader>z', '<cmd>lua bye()<cr>') -- save & quit all.
|
rekey_normal('<Leader>z', '<cmd>lua bye()<cr>') -- Save & quit all.
|
||||||
rekey_normal('<Leader>v', 'v') -- visual select (duplicate).
|
rekey_normal('<Leader>v', 'v') -- Visual select (duplicate).
|
||||||
rekey_normal('gh', '0') -- go left.
|
rekey_normal('<Leader>y', '"+y') -- Copy to system clipboard.
|
||||||
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(';', ':') -- remap ; to :.
|
rekey_normal(';', ':') -- remap ; to :.
|
||||||
rekey_visual(';', ':') -- remap ; to :.
|
rekey_visual(';', ':') -- remap ; to :.
|
||||||
|
|
Reference in a new issue