Chinaunix首页 | 论坛 | 博客
  • 博客访问: 183863
  • 博文数量: 76
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 831
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-31 00:52
文章分类

全部博文(76)

文章存档

2010年(58)

2009年(18)

我的朋友

分类:

2009-11-27 19:11:19


Reference:

http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx


http://easwy.com/blog/archives/advanced-vim-skills-lookupfile-plugin/

Below is my vimrc:





"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
                                                VIM-IDE setting                                                    "
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""
" Taglist setting
"
"""""""""""""""""""""""""""""
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
"
"""""""""""""""""""""""""""""
"
WinManager setting
""""""""""""""""""""""""""""""
let g:winManagerWindowLayout='FileExplorer|TagList'
let g:winManagerWidth=40
nmap wm :WMToggle<cr>
""""""""""""""""""""""""""""""
" Cscope setting
"
"""""""""""""""""""""""""""""
set cscopequickfix=s-,c-,d-,i-,t-,e-
nmap s :cs find s =expand("
<cword>")
nmap g :cs find g =expand("
<cword>")
nmap c :cs find c =expand("
<cword>")
nmap t :cs find t =expand("
<cword>")
nmap e :cs find e =expand("
<cword>")
nmap f :cs find f =expand("
<cfile>")
nmap i :cs find i ^=expand("
<cfile>")$
nmap d :cs find d =expand("
<cword>")
"
"""""""""""""""""""""""""""""
"
lookupfile setting
""""""""""""""""""""""""""""""
let g:LookupFile_MinPatLength = 2             "最少输入2个字符才开始查找
let g:LookupFile_PreserveLastPattern = 0     "
不保存上次查找的字符串
let g:LookupFile_PreservePatternHistory = 1 "保存查找历史
let g:LookupFile_AlwaysAcceptFirst = 1         "
回车打开第一个匹配项目
let g:LookupFile_AllowNewFiles = 0             "不允许创建不存在的文件
if filereadable("
./filenametags")             "设置tag文件的名字
    let g:LookupFile_TagExpr = '"./filenametags"'
endif
nmap <silent> <leader>lk <Plug>LookupFile<cr>     "映射LookupFile为,lk
nmap ll :LUBufs             "
映射LUBufs为,ll
nmap <silent> <leader>lw :LUWalk<cr>
nmap <unique> <silent> <F5> <Plug>LookupFile


阅读(542) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~