vim 插件配置

使用插件总管vbundle。

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

然后在.vimrc上编辑以下代码

set nocompatible
set rtp+=~/.vim/bundle/vundle/
highlight SyntasticErrorSign guifg=white guibg=black
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/syntastic'
Bundle 'Valloric/YouCompleteMe'
Bundle 'scrooloose/nerdcommenter'
Bundle 'tpope/vim-repeat'
Bundle 'junegunn/vim-easy-align'
Bundle "kshenoy/vim-signature"
Bundle 'ctrlpvim/ctrlp.vim'
Bundle 'tacahiroy/ctrlp-funky'
nnoremap <Leader>fu :CtrlPFunky<Cr>
Bundle 'bling/vim-airline'
Bundle 'kien/rainbow_parentheses.vim'
Bundle 'altercation/vim-colors-solarized'
Bundle 'tomasr/molokai'
Bundle 'chriskempson/vim-tomorrow-theme'
Bundle 'scrooloose/nerdtree'
Bundle 'jistr/vim-nerdtree-tabs'
Bundle "szw/vim-ctrlspace"
Bundle 'majutsushi/tagbar'
nmap <F9> :TagbarToggle<CR>
Bundle 'jelera/vim-javascript-syntax'
Bundle "pangloss/vim-javascript"
Bundle 'marijnh/tern_for_vim'
Bundle 'nono/jquery.vim'
Bundle 'mattn/emmet-vim' 
Bundle 'Glench/Vim-Jinja2-Syntax'  

然后执行vim,输入:PluginInstall就可以安装这些插件了。

YouCompletMe

但是这里有一个YouCompleteMe插件很有可能会下载失败。那么可以从github上下载

git clone git@github.com:Valloric/YouCompleteMe.git  ~/.vim/bundle/

这个家伙很特殊需要特别安装一下

$ cd .vim/bundle/YouCompleteMe
$ ./install.py --clang-complete
然后会提示你这样一句话,照做就行
git submodule update --init --recursive
然后我还遇到一个问题

Screenshot from 2016-12-18 21-32-36.png

大概意思就是不支持python,只需执行下面命令就可以啦!

sudo apt-get install python-dev libxml2-dev libxslt-dev

nerdtree

在终端输入:NERDTree就可以显示目录结构了,使用hjkl移动,o打开文件。
问题:

如何从编辑窗再返回目录结构窗?

syntastic

代码检查

问题:

.vimrc上添加filetype on这样一句,整个vim就没有颜色了,希望有人解答!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 常言道:工欲善其事,必先利其器 ,作为一个程序员,一个常用的工具就是编辑器,我选择一个能极大提高自己开发效率的编辑...
    Sam_Lau阅读 120,926评论 34 266
  • macvim配置 最终效果如下: 系统环境 macos10.12.4 homebrew1.2.1 python3....
    Like_eb56阅读 69,930评论 5 65
  • 安装依赖库(支持Python 3、Lua、Ruby) sudo apt-get install libncurse...
    Cyfeng阅读 2,157评论 0 2
  • space-vim 现已支持 Layer ,以下内容大都陈旧,欢迎访问 github 查看最新版本:>>>> sp...
    liuchengxu阅读 43,081评论 2 98
  • 我是个有福气的人,你也应该这样想。 我总是鼓励别人这么想:我是个有福气的人。对,想想看,你遇到的好运气,人就应该这...
    K歪阅读 430评论 0 0