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 'VundleVim/Vundle.vim' Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'majutsushi/tagbar'
Plugin 'scrooloose/syntastic'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Valloric/YouCompleteMe' Plugin 'tpope/vim-fugitive'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} " The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
" Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
" Plugin '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/'}
" Avoid a name conflict with L9
" Plugin 'user/L9', {'name': 'newL9'} " All of your Plugins must be added before the following line
call vundle#end() " required
filetype 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 line " airline "设置打开vim的时候默认打开目录树"
let g:nerdtree_tabs_open_on_console_startup=
" 关闭NERDTree快捷键
map <C-t> :NERDTreeToggle<CR> ""当NERDTree为剩下的唯一窗口时自动关闭
autocmd bufenter * if (winnr("$") == && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
let g:NERDTreeDirArrowExpandable = '►'
let g:NERDTreeDirArrowCollapsible = '▼'
let NERDTreeAutoCenter=
" 是否显示隐藏文件
let NERDTreeShowHidden=
" 设置宽度
let NERDTreeWinSize= "let g:NERDTreeIndicatorMapCustom = {
" \ "Modified" : "✹",
" \ "Staged" : "✚",
" \ "Untracked" : "✭",
" \ "Renamed" : "➜",
" \ "Unmerged" : "═",
" \ "Deleted" : "✖",
" \ "Dirty" : "✗",
" \ "Clean" : "✔︎",
" \ "Ignored" : "☒'",
" \ "Unknown" : "?"
" \ } """""""""""""""""""""""""""""""""""""""
let g:airline_powerline_fonts =
set t_Co=
set laststatus= " ycm
let g:ycm_python_binary_path='/usr/bin/python'
let g:ycm_confirm_extra_conf= let g:ycm_server_python_interpreter='/usr/bin/python'
"let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'
let g:ycm_global_ycm_extra_conf='/home/ubuntu/.vim/.ycm_extra_conf.py' let g:clang_use_library= let g:ycm_collect_identifiers_from_tags_files = "tag complete
let g:ycm_seed_identifiers_with_syntax = "yu yi complete set completeopt-=preview let g:ycm_complete_in_comments= "comment of complete syntax on set number
set cindent
set autoindent
set expandtab set smarttab
" set mouse=a
set shiftwidth=
set softtabstop=
set hls
set bg=dark

编辑文件: vim ~/.vimrc

在shell命令行输入:vim +PluginInstall +qall  安装相关插件

里面代码补全插件:YouCompleteMe比较难装,参考 https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

最新文章

  1. 字符加密Cipher(bzoj 1031)
  2. C#基础系列——委托实现简单设计模式
  3. Oracle 学习方法
  4. linux下安装php的imagick扩展模块(附php升级脚本)
  5. httpclient详细介绍
  6. Python中__init__方法/__name__系统变量讲解
  7. ios - 带动画圆形旋转的进度条
  8. [COCOS2DX]第一个开源项目的部署和运行&lt;win32版本&gt;
  9. VBS基础篇 - 杂项 - Sendkeys
  10. Hibernate持久化对象的三种状态深入理解
  11. 防F12审查元素扒代码:按下F12关闭当前页面
  12. date(&#39;Y-m-d H:i:s&#39;,time()) 与 date(&#39;Y-m-d h:i:s&#39;,time())区别是什么
  13. Linux学习笔记 3 权限篇
  14. java static learning
  15. C#:特性
  16. JVM内存结构分析
  17. leetcode1
  18. String的实例化与static final修饰符
  19. centos环境无法安装paramiko的问题解决
  20. 33-hadoop-cdh搭建coudemanager安装

热门文章

  1. HP 4411s Install Red Hat Enterprise Linux 5.8) Wireless Driver
  2. Zabbix的简单使用
  3. ubuntu安装网易云音乐
  4. 智能制造(MES)四大阶段
  5. ionic2添加 android平台出现的问题
  6. spring学习总结(一)_Ioc基础(下)
  7. docker--Dockerfile--java
  8. Django-website 程序案例系列-3 URL详解
  9. BZOJ3282Tree——LCT
  10. BZOJ4001 TJOI2015概率论(生成函数+卡特兰数)