Many new users will feel it is difficult to get started when using Vim, and it is easy to vomit Vim's support for STL completion. Then go to VS. here we will introduce how to add code complementing function to Vim. after code completion is added, the power of Vim has also improved ~ 1. next... many new users will feel it is difficult to get started when using Vim, and it is easy to vomit Vim's support for STL completion. Then go to VS. here we will introduce how to add code complementing function to Vim. after code completion is added, the power of Vim has also improved ~
1. the next ctags plug-in for Vim. Currently, many Vim plug-ins are developed based on ctags. Http://ctags.sourceforge.net/
2. For more information about the installation process, see other articles on ctags on the Internet.
3. Next, download the OmniCppComplete plug-in and copy it to the vim installation directory. my directory is/usr/share/vim/vim73.
4. decompress the package and add the OmniCppComplete instructions and. vim files to the original doc and plugin directories.
5. download the STL source code, decompress it, and enter the following command in the terminal:
Ctags-R -- c ++-kinds = + p -- fields = + iaS -- extra = + q
6. a tags file will appear in the STL source code directory.
7. in ~ /. Add the path of the tags file to the vimrc file. my STL source code directory is/home/sph.pdf/Software/stl, so add this sentence to. vimrc.
Set tags + =/sphinx/Software/stl/tags
8. enable Vim ~
Source code strength