before start
- vim没有必要配置成ide,他只需要完成写代码的东西就完了
- 没必要使用别人的东西,因为这些东西都不是永久不变的。
- 减少配置。只用自己想用的。
- vundle Bundle Plugin 有什么区别
Vundle is short for Vim bundle and is a Vim plugin manager. - 我的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
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