文章目录
  1. 1. 升级vim8.0
  2. 2. brew install 下载慢

将mac自带的vim7.3 升级到vim8.0

升级vim8.0

  • 升级终端用得vim

    brew install vim –with-lua –with-override-system-vi

  • 升级GUI版本的vim

    brew install macvim –with-lua –with-override-system-vim

brew install 下载慢

brew install发现下载vim8.0很慢, 解决方案是先去浏览器或用wget等其它方式下载好要安装的包,然后替换掉brew cache下的包即可。具体操作:

  • brew cache 目录

    brew cache
    /Users/lihong/Library/Cache/Homebrew

可以看到上述目录中已经有一个vim-8.00041.tar.gz.incomplete 文件了, 将自己下载好的安装包也修改为和这个未完成文件的文件名一样,如修改为vim-8.00041.tar.gz. 然后,

brew install vim –with-lua –with-override-system-vi

  • mac vim8.0 具体安装信息如下:

    • install

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11

      ➜ ~ brew install vim --with-lua --with-override-system-vi
      ==> Using the sandbox
      ==> Downloading https://github.com/vim/vim/archive/v8.0.0041.tar.gz
      ==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0041
      ######################################################################## 100.0%
      ==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0041/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-luainterp --enable-perlinterp --enable-pythoninterp --enable-
      ==> make
      ==> make install prefix=/usr/local/Cellar/vim/8.0.0041 STRIP=/usr/bin/true
      🍺 /usr/local/Cellar/vim/8.0.0041: 1,706 files, 23.3M, built in 5 minutes 16 seconds

    • :version

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      :version
      VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 16 2016 23:10:47)
      MacOS X (unix) version
      Included patches: 1-41
      Compiled by Homebrew
      Huge version without GUI. Features included (+) or not (-):
      +acl -clientserver +cursorbind +ex_extra -gettext +libcall +mouse +mouse_xterm +persistent_undo +ruby +tag_old_static -toolbar +wildmenu -xterm_save
      +arabic +clipboard +cursorshape +extra_search -hangul_input +linebreak -mouseshape +multi_byte +postscript +scrollbind -tag_any_white +user_commands +windows
      +autocmd +cmdline_compl +dialog_con +farsi +iconv +lispindent +mouse_dec +multi_lang +printer +signs -tcl +vertsplit +writebackup
      -balloon_eval +cmdline_hist +diff +file_in_path +insert_expand +listcmds -mouse_gpm -mzscheme +profile +smartindent +termguicolors +virtualedit -X11
      -browse +cmdline_info +digraphs +find_in_path +job +localmap -mouse_jsbterm +netbeans_intg +python +startuptime +terminfo +visual -xfontset
      ++builtin_terms +comments -dnd +float +jumplist +lua +mouse_netterm +num64 -python3 +statusline +termresponse +visualextra -xim
      +byte_offset +conceal -ebcdic +folding +keymap +menu +mouse_sgr +packages +quickfix -sun_workshop +textobjects +viminfo -xpm
      +channel +cryptv +emacs_tags -footer +lambda +mksession -mouse_sysmouse +path_extra +reltime +syntax +timers +vreplace -xsmp
      +cindent +cscope +eval +fork() +langmap +modify_fname +mouse_urxvt +perl +rightleft +tag_binary +title +wildignore -xterm_clipboard

作者署名:朴实的一线攻城狮
本文标题:mac vim7.3 升级到vim8.0
本文出处:http://researchlab.github.io/2016/10/16/mac-update-vim8-0/
版权声明:本文由Lee Hong创作和发表,采用署名(BY)-非商业性使用(NC)-相同方式共享(SA)国际许可协议进行许可,转载请注明作者及出处, 否则保留追究法律责任的权利。

@一线攻城狮

关注微信公众号 @一线攻城狮

总访问:
总访客: