Mac环境vim+cscope+taglist
来源:互联网 发布:软件外包项目管理制度 编辑:程序博客网 时间:2024/06/06 15:53
1. Install software.
$brew install vim
$brew install cscope
$brew install ctags
2. ~/.vimrc
syntax on
filetype on
set ru
set backspace=indent,eol,start
set whichwrap=b,s,<,>,[,]
set nocompatible
set number
set history=1000
set background=dark
set autoindent
set smartindent
set expandtab
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set cindent
set incsearch
let Tlist_Auto_Open=1
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
colorscheme evening
3. cscope+taglist
taglist 的下载地址:
http://www.vim.org/scripts/script.php?script_id=273
cscope_maps.vim的下载地址:
http://cscope.sourceforge.net/cscope_maps.vim
将下载解压后的文件cppcomplete.vim,taglist.vim和cscope_maps.vim拷贝到~/.vim/plugin中
修改cscope_maps.vim
nmap <F5>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <F5>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <F5>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <F5>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <F5>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <F5>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <F5>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <F5>d :cs find d <C-R>=expand("<cword>")<CR><CR>
0 0
- Mac环境vim+cscope+taglist
- Mac Vim IDE开发环境配置(Ctags, Taglist, Cscope, Omni, Supertab, 文件布局)
- vim cscope taglist 使用
- vim+ctags+taglist+cscope
- vim + ctags + cscope+taglist
- vim cscope taglist 使用
- vim+ctags+cscope+taglist
- vim+Taglist+cscope+ctags
- vim+tags+cscope+taglist
- vim+ctags+taglist+cscope
- vim + cscope + ctags + taglist
- vim+tags+cscope+taglist
- vim + ctags + cscope + taglist
- vim cscope+ctags+taglist
- vim+ctags+taglist+cscope+cppcomplete+global 环境搭建
- 安装linux开发环境(vim + ctags + taglist + cscope + cppcomplete + global )
- Cygwin+vim+cscope+ctags+taglist打造个性IDE开发环境
- vim完整开发环境配置(taglist/cscope/nerdtree/ctrlp)
- 递归神经网络不可思议的有效性
- 数据库范式的简介
- Linux那些事儿之我是Sysfs(4)举例一lddbus
- 【整理项】JNI不错的文章推荐
- codevs 3002石子归并
- Mac环境vim+cscope+taglist
- 加密 解密
- Android之高德地图SDK配置及简单使用详解
- 查询表占用的空间大小
- Linux那些事儿之我是Sysfs(5)举例二sculld
- Animation & Property Animation 使用
- JavaIO基础详解
- 幂等
- WebSocket 示例