Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.