https://github.com/kilavila/nvim-yoink
Simple Neovim plugin to copy and paste text
https://github.com/kilavila/nvim-yoink
lua neovim-plugin nvim-lua nvim-plugin
Last synced: 4 months ago
JSON representation
Simple Neovim plugin to copy and paste text
- Host: GitHub
- URL: https://github.com/kilavila/nvim-yoink
- Owner: kilavila
- Created: 2024-03-08T18:21:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-11T12:50:00.000Z (almost 2 years ago)
- Last Synced: 2024-03-11T21:27:00.315Z (almost 2 years ago)
- Topics: lua, neovim-plugin, nvim-lua, nvim-plugin
- Language: Lua
- Homepage:
- Size: 17.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nvim-yoink
A very simple plugin to store text you'd like to paste later.
Rather than jumping back and forth between files, you can just yeet it all into Yoink.
## Updates
- Added `:YoinkClear` to easily clear Yoink list
- Added `:YoinkVisualSave` to Yoink current selection in visual mode
- Added print messages in functions for better feedback to commands
## Features
- Add lines to Yoink
- Copy from Yoink
- Paste from Yoink
- Edit Yoink contents
## Installation
With [lazy.nvim](https://github.com/folke/lazy.nvim)
```
{ "kilavila/nvim-yoink" }
```
## Keymaps
Copy current line to Yoink with `:YoinkSave` and `:YoinkClear` to clear the list
`:YoinkVisualSave` to Yoink current selection
Open Yoink window with `:YoinkOpen`
or bind to a key, f.ex:
```
nnoremap Y :YoinkSave
vnoremap Y :YoinkVisualSave
nnoremap Y :YoinkOpen
nnoremap DY :YoinkClear
```
Keybinds to use in Yoink window
```
Escape = Close window
Enter = Paste current line
yy = Yank current line
Y = Yank all lines
```
Want to delete a file from the list? Use `dd` like in any other buffer
## Commands
```
YoinkOpen
YoinkSave
YoinkVisualSave
YoinkClear
```