vim配置
来源:互联网 发布:潘多拉淘宝 编辑:程序博客网 时间:2024/05/29 18:52
Vim for Linux:
Debian (or Ubuntu)
1.Make sure you have any of these packages:
- vim-nox
- vim-gtk
- vim-gnome
- vim-athena
2.bundle安装
- git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe
- cd ~/.vim/bundle/YouCompleteMe
- git submodule update --init --recursive
- cd ~/.vim/bundle/YouCompleteMe
- ./install.py --clang-completer
3.在~/.vimrc中添加
[plain] view plain copy
- " Vunble
- filetype off " required!
- set rtp+=~/.vim/bundle/vundle/
- call vundle#rc()
- " let Vundle manage Vundle
- Bundle 'gmarik/vundle'
- " vim-scripts repos
- Bundle 'Valloric/YouCompleteMe'
- filetype plugin indent on " required!
- let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
4.直接安装
- cd /home/acrobat/.vim/bundle/YouCompleteMe
- git submodule update --init --recursive
- cd /home/acrobat/.vim/bundle/YouCompleteMe
- ./install.py --clang-completer
- 执行
- sed -i '$a"YouCompleteMe\nlet g:ycm_global_ycm_extra_conf="/usr/share/vim/vim74/plugin/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py"\nnmap <C-\>G :YcmCompleter GoTo<CR>' ~/.vimrc
阅读全文
0 0
- vim配置NERD_tree.vim
- [Linux][Vim]:vim 配置
- vim配置NERD_tree.vim
- vim 配置vim
- vim 配置
- vim 配置
- vim配置
- vim 配置
- vim 配置
- vim 配置
- vim 配置
- vim配置
- vim配置
- VIM 配置
- vim 配置
- vim 配置
- VIM配置
- vim配置
- 系统吞吐量(TPS)、用户并发量、性能测试概念和公式
- node.js 关于timeout函数
- JAVA基础知识一
- 嵌入式每日学习心得 管道通信/IPC
- java每日一练
- vim配置
- 黑板客 -- 爬虫闯关 -- 关卡01
- redis学习(2)连接,数据类型
- 玲珑杯 Round #20
- Android插件化从入门到放弃-最强合集
- 二维凸包Haskell实现
- Expected a component class, got [object Object]
- 99. Recover Binary Search Tree
- UVA.12034 Race (递推)