For easy file editing, I’m using neovim, so editing is as simple as calling nvim
on the file.
Install
Fedora
sudo dnf install neovim
WSL Clipboard integration
For Neovim’s clipboard integration, you have to decide whether you want native clipboard integration with Wayland/X11, or not.
As a rough measure, you probably want clipboard integration over Windows if you use, e.g., WezTerm installed on Windows to access WSL and you most likely want native clipboard integration for Wayland/X11 if you use an installation of a terminal emulator from out of WSL.
Note
Clipboard via Windows
Set up win32yank and make sure that your Windows PATH
(or specifically win32yank’s path) is available from within WSL.
Native clipboard
Set up Clipboard Handling.
Copilot
In my Dotfiles, specifically in my Neovim configuration, I configure Copilot.
If you have a GitHub account, Copilot should be available to you.
To authenticate with Copilot, you simply have to
- Run
:Copilot auth
within Neovim. - Copy the displayed one-time-code.
- Go to https://github.com/login/device.
- Log into your GitHub account.
- Paste the previously copied one-time-code.
- Return to your Neovim instance.
- Wait until the popup closes.