Comments (3)
Hi, sorry, for the moment, I can't manage to make it works with https://github.com/vim-scripts/ReplaceWithRegister... I think it's because it use tpope/vim-repeat to manage repeatability. I'll make more tries later.
However, if you want to try substitute.nvim, to have something similar to ReplaceWithRegister, just do :
use("gbprod/yanky.nvim")
use("gbprod/substitute.nvim")
require("substitute").setup({
on_substitute = function(event)
require("yanky").init_ring("p", event.register, event.count, event.vmode:match("[vV�]"))
end,
})
vim.keymap.set("n", "gr", "<cmd>lua require('substitute').operator()<cr>", { noremap = true })
vim.keymap.set("n", "grr", "<cmd>lua require('substitute').line()<cr>", { noremap = true })
vim.keymap.set("x", "gr", "<cmd>lua require('substitute').visual()<cr>", { noremap = true })
from yanky.nvim.
I'm not familiar with ReplaceWithRegister but I can try to do something, can you provide a minimal config ? I'll try something today
(PS: It seems that ReplaceWithRegister do something similar to another of my plugins, have a look to substitute.nvim ;) )
from yanky.nvim.
You don't need any configuration with that plugin, it just works
from yanky.nvim.
Related Issues (20)
- Feature Request: Telescope action to both put item and set register HOT 3
- Doesn't work with Telescope HOT 9
- Feature Request: Ability to set default telescope action HOT 1
- Selection of a history in telescope always ends in pasting the latest history record HOT 5
- Feature request: Replace with Yanky HOT 1
- Text object errors HOT 2
- Bug: Latest commit breaks last-paste-textobj HOT 6
- Error executing lua callback attempt to index field 'yanky_textobj' (a nil value) HOT 2
- Wrong position of special mark after paste HOT 1
- Update doc for v2
- Question: is there lua API to get last yank/copy text, and get all the yank/copy history? HOT 2
- [Error] Occurs with `cancel_event = 'move'` When Pasting Twice HOT 2
- [Enhancement] Ignore Replaced Text HOT 7
- Wrong behavior of telescope.mapping.put actions HOT 5
- Could you increase the visibility of this by suggesting those maps in the README?
- Can't ignore primary register "* HOT 3
- Preserve cursor position on yank doesn't work HOT 2
- YankyPutAfter vs YankyGPutAfter HOT 1
- nitpick about naming and doc around YankyPutBefore/After HOT 1
- Implements `zy`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yanky.nvim.