opensuse42.2vim安装YouCompleteMe
来源:互联网 发布:linux开机自启动命令 编辑:程序博客网 时间:2024/05/01 08:12
原文:https://github.com/Valloric/YouCompleteMe#full-installation-guide安装cmake gitsudo zypper install cmake git删除vimsudo zypper remove vim创建一个文件夹放vim源码mkdir softwaremkdir software使用git下载源码git clone https://github.com/vim/vim.gitcd vim
./configure --with-features=huge \ --enable-multibyte \ --enable-rubyinterp=yes \ --enable-pythoninterp=yes \ --with-python-config-dir=/usr/lib64/python2.7/config \ --enable-python3interp=yes \ --with-python3-config-dir=/usr/lib64/python3.4/config3.4m \ --enable-perlinterp=yes \ --enable-luainterp=yes \ --enable-gui=gtk2 \ --enable-cscope \ --prefix=/usrmake VIMRUNTIMEDIR=/usr/share/vim/vim80
sudo make install
到此vim安装成功
安装vim插件管理工具Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
编辑.vimrc文件
在call vundle#begin()和call vundle#end()中放自己的插件
set nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" 在这里放YouCompleteMe插件plugin 'Valloric/YouCompleteMe'" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repoPlugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.html" Plugin 'L9'" Git plugin not hosted on GitHubPlugin 'git://git.wincent.com/command-t.git'" git repos on your local machine (i.e. when working on your own plugin)Plugin 'file:///home/gmarik/path/to/plugin'" The sparkup vim script is in a subdirectory of this repo called vim." Pass the path to set the runtimepath properly.Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}" Install L9 and avoid a Naming conflict if you've already installed a" different version somewhere else." Plugin 'ascenator/L9', {'name': 'newL9'}" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype plugin indent on " required" To ignore plugin indent changes, instead use:"filetype plugin on"" Brief help" :PluginList - lists configured plugins" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate" :PluginSearch foo - searches for foo; append `!` to refresh local cache" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal"" see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this linecd ~/.vim/bundle
git下载YouCompleteMe
git clone https://github.com/Valloric/YouCompleteMe.git检查完整性(在 `~/.vim/bundle/YouCompleteMe` 目录下)
$ git submodule update --init --recursive
安装YouCompleteMe编译安装clang和llvmcd ~/.vim/bundle/YouCompleteMe./install.py
- Get the required tools.
- See Getting Started with the LLVM System - Requirements.
- Note also that Python is needed for running the test suite. Get it at: http://www.python.org/download
- Standard build process uses CMake. Get it at: http://www.cmake.org/download
- Check out LLVM:
- Change directory to where you want the llvm directory placed.
- svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
- Check out Clang:
- cd llvm/tools
- svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
- cd ../..
- Check out extra Clang tools: (optional)
- cd llvm/tools/clang/tools
- svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra
- cd ../../../..
- Check out Compiler-RT (optional):
- cd llvm/projects
- svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
- cd ../..
- Check out libcxx: (only required to build and run Compiler-RT tests on OS X, optional otherwise)
- cd llvm/projects
- svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx
- cd ../..
- Build LLVM and Clang:
- mkdir build (in-tree build is not supported)
- cd build
- cmake -G "Unix Makefiles" ../llvm
- make
- This builds both LLVM and Clang for debug mode.
- Note: For subsequent Clang development, you can just run make clang.
- CMake allows you to generate project files for several IDEs: Xcode, Eclipse CDT4, CodeBlocks, Qt-Creator (use the CodeBlocks generator), KDevelop3. For more details see Building LLVM with CMake page.
- If you intend to use Clang's C++ support, you may need to tell it how to find your C++ standard library headers. In general, Clang will detect the best version of libstdc++ headers available and use them - it will look both for system installations of libstdc++ as well as installations adjacent to Clang itself. If your configuration fits neither of these scenarios, you can use the -DGCC_INSTALL_PREFIX cmake option to tell Clang where the gcc containing the desired libstdc++ is installed.
- Try it out (assuming you add llvm/build/bin to your path):
- clang --help
- clang file.c -fsyntax-only (check for correctness)
- clang file.c -S -emit-llvm -o - (print out unoptimized llvm code)
- clang file.c -S -emit-llvm -o - -O3
- clang file.c -S -O3 -o - (output native machine code)
阅读全文
0 0
- opensuse42.2vim安装YouCompleteMe
- 安装Vim插件 YouCompleteMe
- vim安装YouCompleteMe 插件
- 【VIM】安装YouCompleteMe
- vim youcompleteme插件安装
- vim 安装YouCompleteMe 插件
- Ubuntu Vim 安装 YouCompleteMe
- 安装vim的YouCompleteMe插件
- Linux vim安装YouCompleteMe插件
- Ubuntu vim安装插件YouCompleteMe
- mac 安装vim 插件YouCompleteMe
- vim补全插件YouCompleteMe安装
- Vim智能补全插件YouCompleteMe安装
- vim补全插件YouCompleteMe安装
- vim补全插件YouCompleteMe安装
- vim 插件YouCompleteMe 简单安装使用
- Vim智能补全插件YouCompleteMe安装
- CentOs 7下vim安装YouCompleteMe插件
- java:利用fastjson判断一个类型(java.lang.reflect.Type)是否是一个javabean
- 模板类 栈
- JS总结——数据类型
- asp.net查询数据显示等待中提示效果
- Linux 常用命令使用英文全称
- opensuse42.2vim安装YouCompleteMe
- GNS3环境qemu虚拟机linux通过cloud节点loopback桥接上网
- POJ 1222 EXTENDED LIGHTS OUT 二进制高斯消元 (开关翻转问题)
- Android消息机制—— Handler实现原理深度解析
- servlet程序HTTP Status 500
- 链栈
- 横跨两列 /行的单元格:
- Node.js学习(2) Express创建简单网站过程
- I Hate It 单点修改和区间查询