vim:keys: Nvim does not replace has('clipboard')
Neovim does not make `has('clipboard')` obsolete. It only simplifies
clipboard support but `has('clipboard')` will still return `0` if no
supported clipboard program is installed.
See `:help clipboard`
Nvim has no direct connection to the system clipboard. Instead it
depends on a |provider| which transparently uses shell commands to
communicate with the system clipboard or any other clipboard
"backend".
and `:help clipboard-tool`
The presence of a working clipboard tool implicitly enables the '+'
and '*' registers. Nvim looks for these clipboard tools, in order of
priority:
- |g:clipboard|
- pbcopy, pbpaste (macOS)
- wl-copy, wl-paste (if $WAYLAND_DISPLAY is set)
- xclip (if $DISPLAY is set)
- xsel (if $DISPLAY is set)
- lemonade (for SSH) https://github.com/pocke/lemonade
- doitclient (for SSH)
http://www.chiark.greenend.org.uk/~sgtatham/doit/
- win32yank (Windows)
- termux (via termux-clipboard-set, termux-clipboard-set)
- tmux (if $TMUX is set)
This commit is contained in:
@@ -25,7 +25,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Interact with the system clipboard
|
" Interact with the system clipboard
|
||||||
if (has('clipboard') || has('nvim'))
|
if (has('clipboard'))
|
||||||
map <leader>y "+y
|
map <leader>y "+y
|
||||||
map <leader>Y "+Y
|
map <leader>Y "+Y
|
||||||
map <leader>d "+d
|
map <leader>d "+d
|
||||||
|
|||||||
Reference in New Issue
Block a user