Ken Takata wrote: > 2016/2/18 Thu 18:47:08 UTC+9 mattn wrote: > > Hi. > > > > try typing in command line. when having two or more help file languages, > > completion behave strange. > > > > (1) complete with all languages > > > > :help expr-stri<TAB> > > > > candidates > > * expr-string@en > > * expr-string@ja > > > > (2) complete with all languages > > > > :help expr-string@<TAB> > > > > No candidates > > > > Is this right? > > I have a related issue with this for a long time. > Assume Japanese help (@ja) and English help (@en) are installed. > When `:set wildmode=longest` is set, and type the following: > > :help expr-stri<TAB> > > The completion result is: > > :help expr-string@ > > Then enter <CR>, I get "E149: Sorry, no help for expr-string@". > I have to remove the last "@" or append "ja" to get the help for this item. > This is very annoying. > > I wrote a patch for this. With this patch, when the first candidate has an > "@ab" extension and it matches the first language in 'helplang', "@ab" is > omitted. In this case, candidates become: > > * expr-string (@ja is omitted.) > * expr-string@en > > So the completion result is: > > :help expr-string > > Now I can get the help for this item just entering <CR>. > Please check the attached patch.
Thanks, makes a lot of sense. -- hundred-and-one symptoms of being an internet addict: 149. You find your computer sexier than your girlfriend /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
