diff --git a/.vim/plugin/dxomenu.vim b/.vim/plugin/dxomenu.vim index 46d33a3..0b9c28e 100644 --- a/.vim/plugin/dxomenu.vim +++ b/.vim/plugin/dxomenu.vim @@ -1,29 +1,32 @@ -" DxO make you enjoy the right click button! +" Enjoy the right click button! " Custom right click menu to call cscope functions " -if exists("loaded_dxomenu") +if exists("loaded_menu") finish endif -let loaded_dxomenu = 1 +let loaded_menu = 1 set mousemodel=popup function! PopulateMenu() - exe "amenu PopUp.-Sep- :" - exe "amenu PopUp.File :cscope find f =expand('')" - exe "amenu PopUp.Symbol :cscope find s =expand('')" - exe "amenu PopUp.Definition :cscope find g =expand('')" - exe "amenu PopUp.Call :cscope find c =expand('')" - exe "amenu PopUp.Text :cscope find t =expand('')" - exe "amenu PopUp.Egrep :cscope find e =expand('')" - exe "amenu PopUp.GoBack " - exe "amenu PopUp.-Sep- :" - exe "amenu PopUp.DatabaseUpdate :call AutotagsUpdate()" - exe "amenu PopUp.AddExtDatabase :call AutotagsAdd()" - exe "amenu PopUp.-Sep- :" - exe "amenu PopUp.ToggleTagList :TlistToggle" - exe "amenu PopUp.-Sep- :" + 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" endfunc