0

I use Neovim on termux on android 11 I commonly use :y to yank/copy text to nvim clipboard

Then paste it to another files

Recently I've tried using helix-editor(hx) looks and feels so similar to Neovim (with NVChad/spacevim) with a bunch of themes

In its normal mode there is a command :clipboard-yank which literally Yank main selection into system clipboard. after selection of required text.

and similar function is also available on tmux too..

but in nvim it doesn't copy to system clipboard

I tried searching for this function and fond some solutions but those didnt worked for me

set clipboard=unnamed
set clipboard=unnamedplus
set clipboard+=unnamed

or these "*y "+y

in command mod I tried this command echo has('clipboard') it returned 0 instead of a clipboard name

so, is there any way to copy to system clipboard

4
  • I'm not sure Helix is considered as vi compatible which is the criteria for this forum (see: (What is considered vi?)[vi.meta.stackexchange.com/a/37/23502]) Jun 15, 2023 at 4:48
  • don't you need to setup a clipboard provider? Jun 15, 2023 at 6:05
  • Did you try set clipboard=unnamed,unnamedplus?
    – Tae
    Jun 15, 2023 at 7:47
  • @Tae yup I did tried it
    – ANDuser
    Jun 15, 2023 at 17:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.