[Vim-latex-devel] Delete Menus when done with editing tex file
Brought to you by:
srinathava,
tmaas
From: Aditya M. <ad...@um...> - 2003-09-20 20:02:22
|
Hi, There is something that I find a little irritating with the latex-suite package. The menus are excellent but they occupy a lot of space on the gui. So whenever I am finished with the editing of the latex file, I do not want the menu anymore. There are other menus that I want to use, but there is no way in which the latex-suite menus can be turned off when I do not need them. Is there some way in which the filetype menus can be associated with the local buffer, so that when I delete the buffer containing the tex file then the tex menu is automatically deleted. Another mehtod could be that there is something like au BufLeave FileType=tex call delteMenu() <CR> where delteMenu is a function that deletes the menu. Otherwise it could be a entry (with a corresponding command) in the tex-Suite menu. This will be a much better option as I am not sure how the previous two will affect the speed of gvim. As it is gvim runs slightly slower than vim. If you guys want then maybe I could try to write the deleteBuffer function and you can figure out where it should go. Cheers aditya |