How To Install vim-omnicppcomplete on Fedora 36
Introduction
In this tutorial we learn how to install vim-omnicppcomplete
on Fedora 36.
What is vim-omnicppcomplete
This script is for vim 7.0 or higher, it provides C/C++ completion thanks to a ctags database. Features - Complete namespaces, classes, structs and union members. - Complete inherited members for classes and structs (single and multiple inheritance). - Complete attribute members eg - Complete type returned by a function eg - Complete the “this” pointer. - Complete a typedef. - Complete the current scope (global and class scope). - Complete an object after a cast (C and C++ cast). - Complete anonymous types (eg also works for a typedef of an anonymous type. Notes - The script manage cached datas for optimization. - Ambiguous namespaces are detected and are not included in the context stack. - The parsed code is tokenized so you can run a completion even if the current instruction has bad indentation, spaces, comments or carriage returns between words (even if it is not realistic).
We can use yum
or dnf
to install vim-omnicppcomplete
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install vim-omnicppcomplete.
Install vim-omnicppcomplete on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install vim-omnicppcomplete
using dnf
by running the following command:
sudo dnf -y install vim-omnicppcomplete
Install vim-omnicppcomplete on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install vim-omnicppcomplete
using yum
by running the following command:
sudo yum -y install vim-omnicppcomplete
How To Uninstall vim-omnicppcomplete on Fedora 36
To uninstall only the vim-omnicppcomplete
package we can use the following command:
sudo dnf remove vim-omnicppcomplete
vim-omnicppcomplete Package Contents on Fedora 36
/usr/share/vim/vimfiles/after
/usr/share/vim/vimfiles/after/ftplugin
/usr/share/vim/vimfiles/after/ftplugin/c.vim
/usr/share/vim/vimfiles/after/ftplugin/cpp.vim
/usr/share/vim/vimfiles/autoload
/usr/share/vim/vimfiles/autoload/omni
/usr/share/vim/vimfiles/autoload/omni/common
/usr/share/vim/vimfiles/autoload/omni/common/debug.vim
/usr/share/vim/vimfiles/autoload/omni/common/utils.vim
/usr/share/vim/vimfiles/autoload/omni/cpp
/usr/share/vim/vimfiles/autoload/omni/cpp/complete.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/includes.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/items.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/maycomplete.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/namespaces.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/settings.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/tokenizer.vim
/usr/share/vim/vimfiles/autoload/omni/cpp/utils.vim
/usr/share/vim/vimfiles/doc/omnicppcomplete.txt
References
Summary
In this tutorial we learn how to install vim-omnicppcomplete
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).