18 lines
676 B
Lua
18 lines
676 B
Lua
require('key/Rekey')
|
|
|
|
-- Write all we can and exit. Created this to drop non-writable stuff when piping to nvim.
|
|
function bye()
|
|
pcall(vim.cmd, "wa")
|
|
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('<Leader>y', '"+y') -- Copy to system clipboard.
|
|
|
|
rekey_normal(';', ':') -- remap ; to :.
|
|
rekey_visual(';', ':') -- remap ; to :.
|