读书人

尼玛vim自动提醒系统库方法

发布时间: 2012-07-25 09:43:06 作者: rapoo

尼玛,vim自动提示系统库方法
/usr/local/bin/ctags -R -f systags /usr/include/ /Users/apple/Desktop/myfile/test/ /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/把/usr/include包含到
vim ~/.vimrc

" Configuration file for vimfiletype onset modelines=0     " CVE-2007-2438" Normally we use vim-extensions. If you want true vi-compatibility" remove change the following statementsset nocompatible    " Use Vim defaults instead of 100% vi compatibilityset 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" Don't write backup file if vim is being called by "chpass"au BufWrite /private/etc/pw.* set nowritebackupsyntax on"set tags=/Users/apple/red54apple/cas/cas/castagsset tags=/Users/apple/Desktop/myfile/test/systagsset tabstop=4"set autoindentset hlsearch

随便写个c的文件
在文件中control+p control+n
就行了
是,很多人都会,尼玛,走了芥末多弯路才领悟

读书人网 >开源软件

热点推荐