This repository contains the /home/user/.vimrc file that I use for general Programming;
- Vundle as plugin manager
- YouCompleteMe for autocompletion
- Github Copilot for autocompletion
- NERDTree for file browsing
- FuzzyFinder for file searching
- Fugitive for git integration
- Airline for status bar
- Auto-pairs for auto closing brackets
- NERDTree git plugin for git integration on NERDTree
- vim-nerdtree-tabs for tabs on NERDTree
- Clone this repository
git clone https://github.com/joaovitor123jv/vimrc
- Copy the .vimrc file to your home directory
cp vimrc/.vimrc ~/.vimrc
- Open vim and run
:PlugInstall
to install all plugins - Install needed compilers for YCM --all
- On Debian-based distros
- If ASDF is not available (possible issues with nodejs and python):
sudo apt install build-essential cmake vim-nox python3-dev mono-complete golang nodejs openjdk-17-jdk openjdk-17-jre npm
- If ASDF is available:
sudo apt install build-essential cmake vim-nox python3-dev mono-complete golang openjdk-17-jdk openjdk-17-jre; asdf plugin add nodejs; asdf plugin add python; asdf install nodejs latest; asdf install python latest; asdf global nodejs latest; asdf global python latest
- If ASDF is not available (possible issues with nodejs and python):
- On Debian-based distros
- Compile YCM:
cd ~/.vim/plugged/YouCompleteMe && python3 install.py --all
- Install github copilot (VIM 9+ required and nodejs 18+):
git clone https://github.com/github/copilot.vim.git ~/.vim/pack/github/start/copilot.vim
- Open VIM and run
:Copilot setup
That's it! You're ready to go!
This vimrc is not projected to be used by anyone else other than me, so it may not work on your machine. If you want to use it, you may need to change some things in order to make it work properly.
If you wish to use it, feel free to do so, but I'm not responsible for any damage it may cause to your machine.