This repository contains my personal Vim configuration designed to enhance productivity for general programming, PHP development, and C/C++ workflows. It is optimized for Vim 9.1 and includes plugins and settings tailored for web development, assembly, and C/C++ projects.
-
General Enhancements:
-
Line numbers (relative and absolute)
-
Smart indentation and tabs
-
Mouse support
-
Truecolor and styled underline support
-
-
Programming Language Support:
-
PHP: Includes plugins for Laravel and PHP-specific enhancements
-
C/C++: Autocompletion and linting using
coc-clangd
andYouCompleteMe
-
Assembly: Syntax highlighting for ARM assembly (GNU Assembler)
-
-
Plugins for Productivity:
-
File Navigation: FZF and NERDTree
-
Version Control: Fugitive and GitGutter
-
Code Formatting: ALE and Prettier
-
Debugger: Vimspector for debugging C/C++ projects
-
-
Theme: Ayu (mirage variant)
-
Vim 9.1 or higher
-
Ensure your Vim installation is compiled with Python 3 support for plugins like YouCompleteMe and Coc.nvim.
-
For Linux, install Vim with
vim-gtk3
or build from source:sudo apt install vim-gtk3
-
-
Plugin Manager: vim-plug
-
If not already installed, set it up by running:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
-
Dependencies:
-
Node.js (for Coc.nvim and Prettier):
sudo apt install nodejs npm
-
Composer (for PHPactor):
sudo apt install composer
-
Python 3 (for YouCompleteMe):
sudo apt install python3 python3-pip
-
Yarn (for vim-prettier):
npm install --global yarn
-
-
Clone this repository into your home directory:
git clone https://github.com/imaarov/my-vim-config.git ~/.vim