" Enjoy the right click button! " Custom right click menu to call cscope functions " if exists("g:loaded_menu") finish endif let g:loaded_menu = 1 set mousemodel=popup function! PopulateMenu() exe "amenu PopUp.-Sep- :" exe "amenu PopUp.Help\\ ! :call Help()" exe "amenu PopUp.-Sep1- :" exe "amenu PopUp.Find\\ File :cscope find f =expand('')" exe "amenu PopUp.Find\\ Symbol :cscope find s =expand('')" exe "amenu PopUp.Find\\ Definition :cscope find g =expand('')" exe "amenu PopUp.Find\\ Call :cscope find c =expand('')" exe "amenu PopUp.Find\\ Text :cscope find t =expand('')" exe "amenu PopUp.Find\\ Egrep :cscope find e =expand('')" exe "amenu PopUp.Go\\ Back " exe "amenu PopUp.-Sep2- :" exe "amenu PopUp.Create\\ local\\ code\\ reference :CtagsKernelBuild:CscopeKernelBuild:cscope reset:cscope add cscope.out" exe "amenu PopUp.Create\\ local\\ code\\ reference\\ with\\ system\\ headers :CtagsBuild:CscopeBuild:cscope reset:cscope add cscope.out" exe "amenu PopUp.Create\\ global\\ code\\ reference :call AutotagsUpdate()" exe "amenu PopUp.Create\\ global\\ code\\ reference\\ for\\ path :call AutotagsAdd()" exe "amenu PopUp.-Sep3- :" exe "amenu PopUp.Toggle\\ show\\ function :TlistToggle" exe "amenu PopUp.-Sep3- :" exe "amenu PopUp.Menu (lcn-menu)" exe "amenu PopUp.hover (lcn-hover)" exe "amenu PopUp.definition (lcn-definition)" exe "amenu PopUp.rename (lcn-rename)" endfunc if has("vim_starting") augroup LoadBufferPopup au! VimEnter * call PopulateMenu() au VimEnter * au! LoadBufferPopup augroup END else call PopulateMenu() endif