Skip to content

Instantly share code, notes, and snippets.

@genadyp
Last active January 29, 2024 06:46
Show Gist options
  • Save genadyp/ab8e71f23be21b74eaabdcdacaaa7813 to your computer and use it in GitHub Desktop.
Save genadyp/ab8e71f23be21b74eaabdcdacaaa7813 to your computer and use it in GitHub Desktop.
vim

Motions

vim-wordmotion - More useful word motions for Vim

IDE

NvChad - An attempt to make neovim cli functional like an IDE while being very beautiful, blazing fast startuptime ~ 0.06 secs

LazyVim - Neovim config for the lazy

LunarVim - IDE layer for Neovim. Completely free and community driven.

Colorschemes

nightfox.nvim - A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.

vim-no-color-collections - Collection of Vim themes with barely any colors

vim-yin-yang - Low contrast black/white color scheme for Vim

Dark

base16-vim - base16-vim

preto - A minimal dark theme for VIM

vim-afterglow - Vim adaptation of the Afterglow colorscheme

vim-dogrun - A dark Neovim / Vim colorscheme for the GUI and 256 / true-color terminals

@genadyp
Copy link
Author

genadyp commented Nov 17, 2023

Copilot

git clone https://github.com/vim/vim.git
cd vim/src
sudo yum install gtk3-devel
sudo yum install libXt-devel
./configure --with-features=huge --enable-gui=gtk3
make
./gvim  # test that it works
sudo make install  # installs under /usr/local/bin/gvim

# Node.js is needed for Copilot
#  First need to remove old (incompatible) npm version:
sudo yum remove npm
# Then install Node.js 18:
sudo yum install https://rpm.nodesource.com/pub_18.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1

# Open vim/gvim, run the command ":Copilot setup", copy the code and go to https://github.com/login/device and enter it there and authorize.

However, I do have one weird glitch with this version, where vim (but not gvim) starts with a weird character over the cursor. It looks like ?4m. I sort of understand what it means, but don't know how to make it not appear. If anyone knows, please share. :vim_intensifies:
💚

After some digging around in the vim documentation I found that the solution is to add this to your ~/.vimrc:

" If you notice problems, such as characters being displayed that
" disappear after `CTRL-L`, you might want to try making this option
" empty.  Then set the 'term' option to have it take effect:
set keyprotocol=
let &term = &term

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment