cd /usr/share/vim sudo vim vimrc
set ai " auto indenting set history=100 " keep 100 lines of history set ruler " show the cursor position syntax on " syntax highlighting set hlsearch " highlight the last searched term filetype plugin on " use the file type plugins " When editing a file, always jump to the last cursor position autocmd BufReadPost * \ if ! exists("g:leave_my_cursor_position_alone") | \ if line("‘\"") > 0 && line ("‘\"") <= line("$") | \ exe "normal g‘\"" | \ endif | \ endif
sudo vim vimrc
你发现了神马??代码高亮显示了,也有自动缩进了。Yey!在10.9.3中测试实验成功。 下面是本机截的效果图:
Mac osx中如何开启代码高亮,布布扣,bubuko.com
原文地址:http://blog.csdn.net/guoshenglong11/article/details/25459891