Git Product home page Git Product logo

clip-nvim's Introduction

Prerequisites

  • This script requires wget and unzip utilities to be installed on your system. You can install them using your package manager.

Installation

The script will perform the following actions:

  • Download the latest release of win32yank from its GitHub repository.
  • Extract the downloaded zip file.
  • Move the win32yank.exe executable to /usr/local/bin.
  • Grant executable permissions to the executable.
  • Clean up temporary files.

Note

  • This script requires sudo privileges to move the executable to /usr/local/bin and grant it executable permissions.
  • After installation, you can use the win32yank.exe command in your terminal.

For more information about win32yank, visit the GitHub repository.

Win32yank Installation Script

This script automates the installation process for win32yank, a tool that enables clipboard integration between Windows and Linux systems, particularly useful for WSL (Windows Subsystem for Linux) or Cygwin users.

Table of Contents

Overview

Win32yank is a utility that allows you to interact with the Windows clipboard from a Unix-like command line. It enables copying and pasting between Windows applications and Linux terminals seamlessly. This script simplifies the installation process by downloading, extracting, and setting up win32yank for immediate use.

Usage

  1. Ensure you have wget and unzip installed on your system.

  2. Download the script:

wget -O install.sh https://raw.githubusercontent.com/victor-dev-00/clip-nvim/main/install.sh
  1. Make the script executable:
chmod +x install_win32yank.sh
  1. Execute the script:
./install.sh

Neovim config

  1. Open the init.lua file in a text editor.

  2. Copy and paste the following code:

    vim.g.clipboard = {
        name = "win32yank-wsl",
        copy = {
            ["+"] = "win32yank.exe -i --crlf",
            ["*"] = "win32yank.exe -i --crlf",
        },
        paste = {
            ["+"] = "win32yank.exe -o --lf",
            ["*"] = "win32yank.exe -o --lf",
        },
        cache_enabled = true,
    }

Clipboard tweak for neovim.

clip-nvim's People

Contributors

wnccys avatar victor-dev-00 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.