ms-jpq / isomorphic_copy

Cross platform clipboard | networkless! remote copy
220 stars 3 forks source link

No getenv #3

Closed j-hui closed 4 years ago

j-hui commented 4 years ago

The nvim snippet doesn't seem to work:

Error detected while processing /home/jhui/.vimrc:
line   65:
E117: Unknown function: getenv
E15: Invalid expression: getenv('DISPLAY') == v:null
Press ENTER or type command to continue

This also doesn't seem to work for vim. I have the repo cloned and the bin directory added to my PATH on both ends, and am accessing a dev server using ssh while the cssh connection is running in another terminal session.

ms-jpq commented 4 years ago

hi there,

which version of vim are you using?

图片

I only tested in VIM 8, so it is possible an older version of VIM would not have this function.

I can try and figure out how to make it work if I can have your version though

j-hui commented 4 years ago

Sorry for the delay. I was using Neovim v0.4.3.

With regular vim, it just doesn't work (although the snippet doesn't fail).

Unfortunately I'm probably not going to use this utility ): when I put isomorphic-copy/bin/ in my PATH, yanking and putting in Neovim also seems to break---when doing yyp, instead of putting to the next line, it will paste right after the cursor.

ms-jpq commented 4 years ago

Oh good catch.

I just pushed a fix here https://github.com/ms-jpq/isomorphic-copy/commit/31186063f311aa8db6262fbb6e499e0cefdcee20,

Please do a git pull on all of your repos.

I originally stripped out all of the trailing newlines beacuse I thought that was a good idea at the time, reverted it.