Table of Contents
Some of the useful features listed below:
- Fast identifier completion
- File and path suggestions
- Detecting common coding errors like missing semi colons, typos etc.
- Code formatting
- Display documentation for functions/methods etc..
Press TAb repeatedly to navigate through suggestions and Enter to select.
YouCompleteMe can be installed with
Vundle. Vundle is a Vim plugin manager. First install the required packages, download the Vundle and then install the plugin using Vundle.
Install required packages
sudo apt install build-essential cmake python3-dev git vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Add configuration to vimrc file
Add the following lines to
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
" let Vundle manage Vundle, required
" plugin on GitHub repo
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
Install YouCompleMe Plugin
Run the following command in terminal
vim +PluginInstall +qall
The installation might take upto a few minutes.
Installing language support for code completion
Add support for C-family languages
Run the following commands in terminal.
python3 install.py --clangd-completer
Install Nodejs and npm and then run the following commands.
python3 install.py --ts-completer
Disabling the preview window
Sometimes I feel annoying when a preview windlow opens displaying the documentation for the C in-built functions or methods for JS. To disable the preview window, add the following line to
For complete documentation regarding YouCompleteMe plugin, visit the official source