Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the YouCompleteMe plug-in with the vim command

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to use the vim command to install the YouCompleteMe plug-in". In the daily operation, I believe many people have doubts about how to use the vim command to install the YouCompleteMe plug-in. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "how to use the vim command to install the YouCompleteMe plug-in". Next, please follow the editor to study!

# ubuntu server 14.04

1 install vundle

1.1 install vundle for plug-in management

Git clone https://github.com/gmarik/Vundle.vim.git ~ / .vim/bundle/Vundle.vim

1.2 put the following in the ~ / .vimrc file

Set nocompatible "be iMproved, required

Filetype off "required

"set the runtime path to include Vundle and initialize

Set rtp+=~/.vim/bundle/Vundle.vim

Call vundle#begin ()

"alternatively, pass a path where Vundle should install plugins

"call vundle#begin ('~ / some/path/here')

"let Vundle manage Vundle, required

Plugin 'gmarik/Vundle.vim'

"Your plugin would be inserted here

"All of your Plugins must be added before the following line

Call vundle#end () "required

Filetype plugin indent on "required

1.3 install plug-ins

Launch vim and run: PluginInstall

2 install YouCompleteMe # install using compilation, take so long time

2.1

Sudo apt-get install cmake python-dev

Cd / .vim/bundle

Git clone https://github.com/Valloric/YouCompleteMe.git

Cd YouCompleteMe

Git submodule update-init-recursive

2.2 compilation

. / install.sh-- clang-completer

2.3 install the plug-in

Vi / .vimrc

Add

Plugin 'Valloric/YouCompleteMe'

Command mode execution: PluginInstall

3 install UltiSnips

Add the following to ~ / .vimrc

Plugin 'SirVer/ultisnips'

Plugin 'honza/vim-snippets'

Let grig UltiSnipsExp and Trigger = ""

Let glug UltiSnipsJumpForwardTrigger = ""

Let glug UltiSnipsJumpBackwardTrigger = ""

Let grig UltiSnips EditSplit = "vertical"

#: BundleInstall

At this point, the study on "how to use the vim command to install the YouCompleteMe plug-in" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report