Re: [Vim-latex-devel] Template names missing: OS X
Brought to you by:
srinathava,
tmaas
From: Gerd W. <ger...@ma...> - 2018-01-01 11:49:46
|
Hi, to me, this looks like a bug in vim itself. Best regards, Gerd On 2017-12-24 15:29, Daryl Lee wrote: > 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. >>>> >>> >> > |