[Vim-latex-devel] Fwd: Re: Template names missing: OS X
Brought to you by:
srinathava,
tmaas
|
From: Daryl L. <da...@da...> - 2017-12-24 14:31:10
|
I failed to copy this reply to the list. Here it is, in case anyone
else is following this thread.
-------- Forwarded Message --------
Subject: Re: [Vim-latex-devel] Template names missing: OS X
Date: Sun, 24 Dec 2017 07:29:22 -0700
From: Daryl Lee <da...@da...>
To: Gerd Wachsmuth <ger...@ma...>
Thanks for the response!
By the way, this is Vim-Latex 1.9.0.
Here is more data. I tried the following variants (beginning with the i
that numbers the item):
i."<Tab>".fname." " Produces "1"
i.":<Tab>".fname." " Produces "1:"
i.":".fname." " Produces "1:article"
(No space after the colon)
i.": ".fname." " Produces "1:"
(Space after the colon)
Also, there is nothing after the word Compile (or any of its siblings)
in the TeX-Suite menu. So, feeling brave, I opened texmenuconf.vim and
on line 56 deleted the <Tab> after the word "Compile" and got the -ll.
When I added a space after "Compile", the -ll disappeared.
So, recognizing that both <Tab> and space are whitespace, I'll be
looking at how whitespace is handled.
On 12/24/17 1:11 AM, Gerd Wachsmuth wrote:
> 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.
>>>
>>
>
--
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
--
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
|