Use vim instead, since it works for most of the cases and run everywhere!!!. I am not using any fancy neovim feathures cause to archive this feathure I could use code or zed.
It works well in linux but when in windows it seems very slow. But in windows or mac vs code will be a better choice. This only works on some servers if I could not use vs code like somehow my remote ssh server in vscode is not working on my stupid windows machine.
The slime is slow because of the fish shell I use. Put this in the vim config file to make it faster. see jpalardy/vim-slime#204.
set shell=/bin/sh " set default shellSome of the plugins need nodejs to work. could do it through brew
brew install vim nodeor conda,
conda install -c conda-forge vim nodejs curl -ycurl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vimcurl -fLo ~/.vimrc --create-dirs \
https://raw.githubusercontent.com/wybert/nvim/main/.vimrcvim
:PlugInstallvim
:Copilot- multi selection, please refer mg979/vim-visual-multi
Select words with Ctrl-N (like Ctrl-d in Sublime Text/VS Code)
-
comment and u comment use gcc for block or gc for single line
For the neovim, it is a little bit different.
For Neovim!
from https://github.com/neovim/neovim/wiki/Installing-Neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
# you can rename the nvim.appimge too
mv nvim.appimage nvim
chmod u+x nvim
# If the ./nvim.appimage command fails, try:
./nvim.appimage --appimage-extract
./squashfs-root/AppRun --version
# Optional: exposing nvim globally.
sudo mv squashfs-root /
sudo ln -s /squashfs-root/AppRun /usr/bin/nvim
nvim
brew instal neovimcd ~/.config
git clone https://github.com/wybert/nvim.git
rm -rf ~/.config/nvim/.git- ripgrep
sudo apt-get install ripgrep - fd
sudo apt install fd-find - if you want use Github Copilot, install nodejs
brew install node
Why use vim-plug? bc it work with vim and neovim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'nvim
:PlugInstallnvim
:Copilot