Dan*_*owe 11
macOS的默认vim安装使用的路径是/usr/share/vim/vimrc.
在我的系统上(macOS 10.12.5),这些是它的内容:
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup nobackup
Run Code Online (Sandbox Code Playgroud)
输入终端:vim --version
如你所愿检查vim的版本,然后向下滚动你会发现类似的东西;user vimrc file: "$HOME/.vimrc"
希望能帮助到你.
| 归档时间: |
|
| 查看次数: |
19832 次 |
| 最近记录: |