海运的博客

Gvim打开文件错误信息一闪而过解决

发布时间:January 24, 2013 // 分类:Vim // No Comments

最近通过VundleGvim转移到其它电脑上,打开txt文本时显示红色错误一闪而过,可使用以下命令查看详细错误信息。

:messages

Vim插件管理器Vundle安装使用

发布时间:December 16, 2012 // 分类:Vim // No Comments

Linux各发行版上有各种软件包管理器,在强大的Vim上也有包管理插件,极大的方便系统使用与管理。
Vundle基于Git获取Github上的各种Vim插件,可进行在线查找、安装、更新Vim插件,每个插件以单独目录存放,方便管理。
Vundle安装:

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Windows下安装:

cd %USERPROFILE%
git clone https://github.com/gmarik/vundle.git .vim/bundle/vundle

Vundle配置:

set nocompatible "与vi不一致
filetype off
set rtp+=~/.vim/bundle/vundle/ "载入特定目录插件
"set rtp+=$HOME/.vim/bundle/vundle/ "Windows下
call vundle#rc()
"plugin 
"vimscripts账号下的项目直接填写名称即可
Bundle 'snipMate'
"其它需填写用户/资源名称
Bundle 'gmarik/vundle'
"非github上资源
Bundle 'git://git.wincent.com/command-t.git'
"indent
Bundle 'php.vim-html-enhanced'
"color
Bundle 'Lucius'
filetype plugin indent on  

Vundle命令:

:BundleList          #已安装列表
:BundleInstall(!)    #安装、升级
:BundleSearch(!)     #搜索
:BundleClean(!)      #删除

也可在Vundle窗口下管理插件,打开Vim执行:

:Bundles #GitHub上插件列表

Vim插件管理器Vundle.png

Cygwin使用Vim插件管理器Vundle错误error setting certificate verify locations解决

发布时间:December 16, 2012 // 分类:Vim,Cygwin // No Comments

Cygwin下使用Vundle通过Github安装VIM插件时提示以下错误:

error: error setting certificate verify locations:
CAfile: /usr/ssl/certs/ca-bundle.crt
CApath: none while accessing https://github.com/
fatal: HTTP request failed

通过apt-cyg安装ca-certificates解决:

apt-cyg install ca-certificates

或跳过CA验证:

export GIT_SSL_NO_VERIFY=1
分类
最新文章
最近回复
  • jiangker: good, very helpful to me
  • fengfeng: N1 armbian 能有编译下内核吗。。我要开启can 不懂怎么操作
  • 1: 方法一ngtcp2要改下:./configure PKG_CONFIG_PATH=/usr/l...
  • 海运: 关闭服务器
  • 海风: override.battery.charge.low以及override.battery.r...
  • koldjf: 不能过滤
  • 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏
  • 海运: ups不知有没选项可设置此参数,不过你可以在另外一台电脑上安装nut客户端自动关机。
  • kgami: 想请教一下,设置了的电脑自动关机之后,几秒后UPS怎么也跟着关机了,导致另外一台电脑没关机就断...
  • 海运: 写的很详细了啊,/etc/nut/hosts.conf用以nut-cgi连接nut服务器参数,...