Re: [Vim-latex-devel] Bug with mapleader = " "
Ответ на сообщение «Re: [Vim-latex-devel] Bug with mapleader = " "», присланное в 01:00:23 08 октября 2010, Пятница. Отправитель: Mika Fischer: > Also maybe an option not to set those mappings and let users set their > own mappings would be useful. It is the most useful option: I have to place function IMAP(...) endfunction to my ftplugin/tex.vim in order not to have those very annoying insert mode mappings. Attached patch adds an option `g:latex_suite_omit_imap' that forbids using all IMAPs. Текст сообщения: > On Thu, Oct 7, 2010 at 22:17, ZyX wrote: > > What problems do you have? If I do ``let g:mapleader=""'' before > > loading tex file, everything works as expected. Maybe you tried to set > > g:mapleader to literal space? > > Yes, I did. I was under the impression that "" would not work. > I found some links to that effect: > http://stackoverflow.com/questions/446269/can-i-use-space-as-mapleader-in-v > im http://www.reddit.com/r/vim/comments/dh4u5/let_mapleader_space/ > > I have never tried it though. Maybe it's also an issue with missing > quotes... > > In any case the way vim-latex set the mappings was broken. I just > changed it so that the behavior stays the same except for my problem. > > > I think that ``g:mapleader'' should be replaced but not with > > ``'' but with ``g:latex_suite_mapleader'' or something like that. > > I did not want to change this. But I agree it would make a lot of > sense. Maybe this variable could then default to to keep the > current behavior? > Also maybe an option not to set those mappings and let users set their > own mappings would be useful. > > Best, > Mika > > --- > --- Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > ___ > Vim-latex-devel mailing list > Vim-latex-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel # HG changeset patch # User ZyX # Date 1286487012 -14400 # Node ID 0418d50d2086a435ec14734b5257b1aa69d9de43 # Parent f0d33dda4a2c1b8dab1a507dd915096af9f95a79 Added g:latex_suite_omit_imap option diff -r f0d33dda4a2c -r 0418d50d2086 ftplugin/latex-suite/bibtex.vim --- a/ftplugin/latex-suite/bibtex.vim Thu Oct 07 20:19:23 2010 + +++ b/ftplugin/latex-suite/bibtex.vim Fri Oct 08 01:30:12 2010 +0400 @@ -125,10 +125,12 @@ endif let s:done = 1 -call IMAP ('BBB', "\=BibT('', '', 0)\", 'bib') -call IMAP ('BBL', "\=BibT('', 'o', 0)\", 'bib') -call IMAP ('BBH', "\=BibT('', 'O', 0)\", 'bib') -call IMAP ('BBX', "\=BibT('', 'Ox', 0)\", 'bib') +if !exists('g:latex_suite_omit_imap') + call IMAP ('BBB', "\=BibT('', '', 0)\", 'bib') + call IMAP ('BBL', "\=BibT('', 'o', 0)\", 'bib') + call IMAP ('BBH', "\=BibT('', 'O', 0)\", 'bib') + call IMAP ('BBX', "\=BibT('', 'Ox', 0)\", 'bib') +endif " BibT: function to generate a formatted bibtex entry {{{ " three sample usages: diff -r f0d33dda4a2c -r 0418d50d2086 ftplugin/latex-suite/diacritics.vim --- a/ftplugin/latex-suite/diacritics.vim Thu Oct 07 20:19:23 2010 + +++ b/ftplugin/latex-suite/diacritics.vim Fri Oct 08 01:30:12 2010 +0400 @@ -10,115 +10,117 @@ finish endif -" \'{a} {{{ -call IMAP ('=a', "\\\'{a}", 'tex') -call IMAP ('=b', "\\'{b}", 'tex') -call IMAP ('=c', "\\'{c}", 'tex') -call IMAP ('=d', "\\'{d}", 'tex') -call IMAP ('=e', "\\'{e}", 'tex') -call IMAP ('=f', "\\'{f}", 'tex') -call IMAP ('=g', "\\'{g}", 'tex') -call IMAP ('=h', "\\'{h}", 'tex') -call IMAP ('=i', "\\'{\i}", 'tex') -call IMAP ('=j', "\\'{j}", 'tex') -call IMAP ('=k', "\\'{k}", 'tex') -call IMAP ('=l', "\\'{l}", 'tex') -call IMAP ('=m', "\\'{m}", 'tex') -call IMAP ('=n', "\\'{n}", 'tex') -call IMAP ('=o', "\\'{o}", 'tex') -call IMAP ('=p', "\\'{p}", 'tex') -call IMAP ('=q', "\\'{q}", 'tex') -call IMAP ('=r', "\\'{r}", 'tex') -call IMAP ('=s', "\\'{s}", 'tex') -call IMAP ('=t', "\\'{t}", 'tex') -call IMAP ('=u', "\\'{u}", 'tex') -call IMAP ('=v', "\\'{v}", 'tex') -call IMAP ('=w', "\\'{w}", 'tex') -call IMAP ('=x', "\\'{x}", 'tex') -call IMAP ('=y', "\\'{y}", 'tex') -call IMAP ('=z', "\\'{z}", 'tex') -call IMAP ('=A', "\\'{A}", 'tex') -call IMAP ('=B', "\\'{B}", 'tex') -call IMAP ('=C', "\\'{C}", 'tex') -call IMAP ('=D', "\\'{D}", 'tex') -call IMAP ('=E', "\\'{E}", 'tex') -call IMAP ('=F', "\\'{F}", 'tex') -call IMAP ('=G', "\\'{G}", 'tex') -call IMAP ('=H', "\\'{H}", 'tex') -call IMAP ('=I', "\\'{\I}", 'tex') -call IMAP ('=J', "\\'{J}", 'tex') -call IMAP ('=K', "\\'{K}", 'tex') -call IMAP ('=L', "\\'{L}", 'tex') -call IMAP ('=M', "\\'{M}", 'tex') -call IMAP ('=N', "\\'{N}", 'tex') -call IMAP ('=O', "\\'{O}", 'tex') -call IMAP ('=P', "\\'{P}", 'tex') -call IMAP ('=Q', "\\'{Q}", 'tex') -call IMAP ('=R', "\\'{
Re: [Vim-latex-devel] Bug with mapleader = " "
On Thu, Oct 7, 2010 at 22:17, ZyX wrote: > What problems do you have? If I do ``let g:mapleader=""'' before > loading > tex file, everything works as expected. Maybe you tried to set g:mapleader to > literal space? Yes, I did. I was under the impression that "" would not work. I found some links to that effect: http://stackoverflow.com/questions/446269/can-i-use-space-as-mapleader-in-vim http://www.reddit.com/r/vim/comments/dh4u5/let_mapleader_space/ I have never tried it though. Maybe it's also an issue with missing quotes... In any case the way vim-latex set the mappings was broken. I just changed it so that the behavior stays the same except for my problem. > I think that ``g:mapleader'' should be replaced but not with > ``'' but with ``g:latex_suite_mapleader'' or something like that. I did not want to change this. But I agree it would make a lot of sense. Maybe this variable could then default to to keep the current behavior? Also maybe an option not to set those mappings and let users set their own mappings would be useful. Best, Mika -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
Re: [Vim-latex-devel] Bug with mapleader = " "
Ответ на сообщение «[Vim-latex-devel] Bug with mapleader = " "», присланное в 23:26:23 07 октября 2010, Четверг. Отправитель: Mika Fischer: What problems do you have? If I do ``let g:mapleader=""'' before loading tex file, everything works as expected. Maybe you tried to set g:mapleader to literal space? I think that ``g:mapleader'' should be replaced but not with ``'' but with ``g:latex_suite_mapleader'' or something like that. Текст сообщения: > Hi, > > there's a bug with vim-latex, when setting g:mapleader to . The > compile and view commands etc. get bound to "ll", "lv", and so on > instead of "ll", "lv", and so on. Needless to say this > messes things up quite a bit. The attached patch fixes this problem. > > Please consider applying it. > > Best regards, > Mika signature.asc Description: This is a digitally signed message part. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
Re: [Vim-latex-devel] Bug with mapleader = " "
On Thu, Oct 7, 2010 at 22:21, Till Maas wrote: > I applied it in changeset 1109. Great, thanks! > There are more occurences of mapleader, > e.g. in wizardfuncs.vim and texmenuconf.vim, don't they need to be > patched? No, because if I saw correctly, they're not used for mappings but for displaying the mappings in the gvim menu and the wizard. I guess it's not really helpful in this case, since the will probably not be visible anyway. Maybe space could be replaced by in this case? Or maybe just leave it as which everybody who sets mapleader should know. In case it's not space, I would leave it as it is now, as this way it's most useful to new users... Best, Mika -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
Re: [Vim-latex-devel] Keybindings reference
On Thu, Oct 07, 2010 at 09:34:02PM +0200, Mika Fischer wrote: > I was unable to find a reference of the default keybindings and IMAPs > that vim-latex provides. Here are some: http://vim-latex.sourceforge.net/documentation/latex-suite.html#latex-suite-commands-maps > I case it really isn't there, maybe you could add a link to the > following reference card to the documentation page: > http://users.physik.fu-berlin.de/~mgoerz/blog/2008/05/vim-latexsuite-refcard/ I added a link. Regards Till pgpHZaN1RMTQy.pgp Description: PGP signature -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
Re: [Vim-latex-devel] Bug with mapleader = " "
On Thu, Oct 07, 2010 at 09:26:23PM +0200, Mika Fischer wrote: > Hi, > > there's a bug with vim-latex, when setting g:mapleader to . The > compile and view commands etc. get bound to "ll", "lv", and so on > instead of "ll", "lv", and so on. Needless to say this > messes things up quite a bit. The attached patch fixes this problem. > > Please consider applying it. I applied it in changeset 1109. There are more occurences of mapleader, e.g. in wizardfuncs.vim and texmenuconf.vim, don't they need to be patched? Regards Till pgpdJ8QEJX14x.pgp Description: PGP signature -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
[Vim-latex-devel] Keybindings reference
Hi, I was unable to find a reference of the default keybindings and IMAPs that vim-latex provides. I case it really isn't there, maybe you could add a link to the following reference card to the documentation page: http://users.physik.fu-berlin.de/~mgoerz/blog/2008/05/vim-latexsuite-refcard/ Best, Mika -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
[Vim-latex-devel] Bug with mapleader = " "
Hi, there's a bug with vim-latex, when setting g:mapleader to . The compile and view commands etc. get bound to "ll", "lv", and so on instead of "ll", "lv", and so on. Needless to say this messes things up quite a bit. The attached patch fixes this problem. Please consider applying it. Best regards, Mika vim-latex-mapleader.patch Description: Binary data -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel