Mac下vim使用问题

  • Mac下终端(terminal)中vim无法删除

编辑~/.vimrc,添加如下内容:

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

http://stackoverflow.com/questions/3534028/mac-terminal-vim-will-only-use-backspace-when-at-the-end-of-a-line

  • Mac下vim打开后YouCompleteMe报错
YouCompleteMe unavailable: dlopen(/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not
found: __PyCodecInfo_GetIncrementalDecoder

我安装了macvim,但是终端里面的vim还是7.4,更新vim即可,注意覆盖系统vim

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

安装后如果问题依旧,注意关闭Command Q退出iTerm2,重新打开即可。

你可能感兴趣的:(Mac下vim使用问题)