Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wybert/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Important

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 shell

Install vim and nodejs

Some of the plugins need nodejs to work. could do it through brew

brew install vim node

or conda,

conda install -c conda-forge vim nodejs curl -y

Install vim-plug

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Pull the config

curl -fLo ~/.vimrc --create-dirs \
    https://raw.githubusercontent.com/wybert/nvim/main/.vimrc

Install plugins

vim
:PlugInstall

Setup the copilot

vim
:Copilot

How to use

  1. multi selection, please refer mg979/vim-visual-multi

Select words with Ctrl-N (like Ctrl-d in Sublime Text/VS Code)

  1. comment and u comment use gcc for block or gc for single line

Enjoy

For the neovim, it is a little bit different.

For Neovim!

For Neovim

Install neovim

For linux

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

For Mac

brew instal neovim

pull the config

cd ~/.config
git clone https://github.com/wybert/nvim.git
rm -rf ~/.config/nvim/.git

Dependacy

  1. ripgrep sudo apt-get install ripgrep
  2. fd sudo apt install fd-find
  3. if you want use Github Copilot, install nodejs brew install node

install vim-plug

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'

install plugins

nvim
:PlugInstall

Setup the copilot

nvim
:Copilot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published