Re: [Vim-latex-devel] Template names missing: OS X
Brought to you by:
srinathava,
tmaas
|
From: Gerd W. <ger...@ma...> - 2017-12-24 08:28:27
|
Hi Daryl,
this is weird. In fact, `:help creating-menus` states:
>>>>>>>>>
Special characters in a menu name:
<Tab> Separates the menu name from right-aligned text. This can be
used to show the equivalent typed command. The text "<Tab>"
can be used here for convenience. If you are using a real
tab, don't forget to put a backslash before it!
>>>>>>>>>
Hence, a "<Tab>" is perfectly fine here. Do you have right-aligned text
in the other menus, e.g. right of "Compile", you should find "ll"??
Best regards
Gerd
On 2017-12-24 03:44, Daryl Lee wrote:
> 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.
>>
>
|