vim 配置

before start

  1. vim没有必要配置成ide,他只需要完成写代码的东西就完了
  2. 没必要使用别人的东西,因为这些东西都不是永久不变的。
  3. 减少配置。只用自己想用的。
  4. vundle Bundle Plugin 有什么区别
    Vundle is short for Vim bundle and is a Vim plugin manager.
  5. 我的vimrc 配置
    https://github.com/xyyanxin/thindped-backup/blob/master/.vimrc

配置中出现的问题

vim无法复制到粘贴板【未解决】

youcompleteme安装有点慢。

发现原因是 vim不支持python (http://howiefh.github.io/2015/05/22/vim-install-youcompleteme-plugin/)
需要重新从源码安装python,方法参照https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

在 vm GUI 中使用Vim

refer

config.vm.provider "virtualbox" do |v|
  v.gui = true
end

vim source compile

cd ~
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
            --enable-multibyte \
            --enable-python3interp=yes \
            --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ \
            --enable-perlinterp=yes \
            --enable-luainterp=yes \
            --enable-gui=gtk2 \
            --enable-cscope \
make VIMRUNTIMEDIR=/usr/local/share/vim/vim80

前前后后编译了好几次,原因为

1 注意prefix我给配成了/usr
2 另外python config 的路径要确认,我已经根据我的电脑做了更改。
3 进入vim 确认the output of :echo has('python') and :echo has('python3')
4 另外python和python3的config只要有一个就可以啦
5 装完后报错 no module named future,解决方式(https://github.com/Valloric/YouCompleteMe/issues/2271)
6 然后报错 no moule named ycm-core 解决方式 https://github.com/Valloric/YouCompleteMe/issues/1707

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容