serna37 / vim

ALL IN ONE VIM WITH ONLY ONE VIMRC FILE.
MIT License
2 stars 0 forks source link
vim vimrc

Demo (only vimrc)

demo

Dependencies

Plugin's Dependencies

if install plugins by :PlugInstall command, need here.
alse see Install_Plugins

plugins dependencies
coc.nvim
language server with coc see here
vimspector Vim 8.2 Huge build compiled with Python 3.10 or later
※also see here
github/copilot.vim GitHub Copilot
CoderCookE/vim-chatgpt https://platform.openai.com/account/api-keys

Recommendation commands / packages

command / package purpose use in vim if include
lazygit GUI git operations
  • [x]
bat syntaxed preview in coc fzf (references/outline)
  • [x]
powerline/fonts font
  • [x]
ryanoasis/nerd-fonts font
  • [x]
ryanoasis/vim-devicons icon
  • [x]

Installation

1. get vim 8.2~

brew install vim

or

git clone --depth 1 https://github.com/vim/vim.git \
&& cd vim && ./configure --with-features=huge --enable-python3interp=dynamic \
&& sudo make && sudo make install \
&& vim --version

2. get this vimrc

git clone --depth 1 https://github.com/serna37/vim && ln -s vim/.vimrc ~/.vimrc

or

curl https://raw.githubusercontent.com/serna37/vim/master/.vimrc > ~/.vimrc

3. [optional] execute command on vim

:PlugInstall

other commands / keymaps details are in cheat sheet.
※ I chose yapf for python formatter, so need python -m pip install yapf ※ To disable inlay hint on clangd mkdir -p ~/Library/Preferences/clangd && vi ~/Library/Preferences/clangd/config.yaml

 InlayHints:
  Enabled: No

4. [optional] setup copilot

:Copilot setup

※ Needs GitHub Copilot

How to use

When you start vim with no args like

vim

You can see cheat sheet on start menu. This is here. cheat_sheet.png

also see wiki-debug

Install_Plugins

:PlugInstall command install these plugins.

Inspired Plugins (no install)

this vimrc including functions inspired these plugins.

Original

this vimrc including these functions.