![]() ![]() But if you are interested I can share the script I used to generate them.īasically after you have it set up, you can add a lua function to shell out your yanked text to the remote clipboard: function pipeToClipboard()įor i,v in ipairs(vim.v.event.regcontents) do It's a PITA to setup the certs and stuff. ![]() I used something called rclip which is basically just a command that can send your clipboard backwards over a VPN (from remote to local), which is otherwise kind of a tricky networking feat due to how firewalls usually work. And I would really appreciate it if you can give any other suggestions. So please don't mind if I said something stupid. I'm not an export on computer system and also not very deep into vim/neovim. Please see this post I put some months ago. The bigger problem is nobody seems to care about it since everyone is agreed that xserver is being replaced by a modern window manager called Wayland, which is still under development. It's so buggy that it just can't sync the xclipboard on the server with pasteboard on the macOS. The only way to have x forwarding in macOS is using an app, called XQuartz. Suggestion 6: mount server to your local folder and use local neovim to editĬan't do that since the clangd need source files on the server. I just want to share clipboards to copy and paste in more convenient way. ![]() Suggestion 5: use linux OS in virtual machine Needless to say, I really hate this suggestion for obvious reasons. Suggestion 4: use mouse to select to copy and paste (using cmd+c or cmd+V) But I can't find anywhere how it can be integrated into neovim g:clipboard. It looks very good since it directly lets server send the texts or copy the texts to or from local clipboard. And I prefer continuing using iterm2 as it's a really fantastic terminal. I haven't tried this much because configuring tmux itself is not easy and the current terminal i'm using, iterm2, seems to work not really well with tmux. I heard here and there that tmux has its own clipboard and can be synced through ssh session. This is unacceptable because why do you need additional keybinding for a simple copy/paste task? Suggestion 2: tmux And you need additional keybinding (like leader-y) for such task. Problem is you can only send the texts from neovim to your system clipboard but not the other way around. And there is a plugin " fcpg/ vim-osc52" that can help you do that. Using osc52 can directly let your terminal copy the selected texts to your local system clipboard without anything else. I've been looking for the solution in the internet for a long time and still not satisfied with all possible suggestions that I found. And when I either copy something from browser by 'cmd+c' or from my local nvim using 'yy', i can directly paste it in the neovim on my server just using 'p'. So when I press 'yy', I can paste it either on my local nvim or on my local browser. All future articles and guides about X410 will also be posted on that new website.Basically what I want is sharing the neovim clipboard (register '*') on a linux server by ssh with my local machine system clipboard (macOS pasteboard).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |