Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julow/vim-clipboard-override
Override Vim registers using system commands.
https://github.com/julow/vim-clipboard-override
Last synced: 4 days ago
JSON representation
Override Vim registers using system commands.
- Host: GitHub
- URL: https://github.com/julow/vim-clipboard-override
- Owner: Julow
- License: mit
- Created: 2022-10-23T12:52:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T14:28:56.000Z (about 2 years ago)
- Last Synced: 2024-11-21T07:32:14.106Z (2 months ago)
- Language: Vim Script
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-clipboard-override
Override Vim registers using system commands.
To main use case is to implement the system clipboard on platforms that are not supported by Vim's `+clipboard`.
For example, to access Android's clipboard on Termux by overriding the `t` register:```viml
let g:clipboard_override_yank = { "t": "termux-clipboard-set" }
let g:clipboard_override_paste = { "t": "termux-clipboard-get" }
```The configured yank command is executed immediately after a yank.
The paste command is executed by the `p` and `P` bindings overridden by this plugin. The text typed by `` is not uptodate.