duplicate.nvim
duplicate.nvim copied to clipboard
Duplicate visual selection, lines, and textobjects
🔌 duplicate.nvim
https://github.com/hinell/duplicate.nvim/assets/8136158/d136146f-fb84-4a66-9a04-6152e49d411a
Duplicate visual selection & lines
⚡Features
- Duplicate lines in different directions (up/down) by specified offset
- Duplicate visual selection & line-wise blocks
🔒Requirements
📦 Installation
packer.nvim
packer.setup(function(use)
use({
"hinell/duplicate.nvim",
setup = function()
vim.g["duplicate-nvim-config"] = {
visual = {
selectAfter = true, -- true to select duplicated text
block = true -- true to enable block-wise duplication
}
}
end
})
end)
lazy.vim
require("lazy").setup(
{ "hinell/duplicate.nvim" },
dependencies={ }
)
vim-plug
Plug "hinell/duplicate.nvim"
DOCUMENTATION
CONTRIBUTING
SUPPORT DISCLAIMER
NO GUARANTEES UNTIL PAID. This project is supported and provided AS IS. See also LICENSE.
SEE ALSO
- hinell/move.nvim - move chunks of text around; fork
- @smjonas/duplicate.nvim - archived
- echasnovski/mini.nvim
- booperlv/nvim-gomove - both move & duplicate chunks of text; poor commands
September 29, 2023 Copyright © - Alexander Davronov (a.k.a Hinell), et.al.