Re: [Vim-latex-devel] Template names missing: OS X
Brought to you by:
srinathava,
tmaas
From: Daryl L. <da...@da...> - 2017-12-24 02:44:28
|
Okay, in case this question comes up again, here is *A* solution (there may be better, but I'm a near-total VimScript newbie: I deleted the <TAB> in line 24 of templates.vim: " SetTemplateMenu: sets up the menu for templates {{{ function! <SID>SetTemplateMenu() let flist = <SID>FindInTemplateDir('') let i = 1 while 1 let fname = Tex_Strntok(flist, ',', i) if fname == '' break endif " exe "amenu ".g:Tex_TemplatesMenuLocation."&".i.":<Tab>".fname." ". exe "amenu ".g:Tex_TemplatesMenuLocation."&".i.":".fname." ". \":call <SID>ReadTemplate('".fname."')<CR>" let i = i + 1 endwhile endfunction And then closed all Vim windows and opened .tex file. According to one of the earlier posters on this problem, the issue arises in other menus as well. I'll remember this in case I need it later. On 12/23/17 7:10 PM, Daryl Lee wrote: > I'm installing Vim-LaTeX on all my workstations (OS X, Windows 10, and > four Ubuntu). First, kudos to the people who brought this to the > state that it's in; very impressive. The first thing I noticed in OS > X (from MacVim) is that when I click TeX-Suite->Templates, I get a > list of numbers 1: through 4:, but without the name of the template. > The templates work (at least 'article' and 'IEEEtran', which I picked > by looking at the contents of the 'templates' file. > > How do I get the actual file names to show up? > > This question was asked in 2010 and 2011 by different people and > apparently never answered. I thought I might try again. > -- Daryl Lee All our discontents about what we want appeared to me to spring from the want of thankfulness for what we have. -- Daniel Defoe |