Thread: [Vim-latex-devel] problem with periods and commas
Brought to you by:
srinathava,
tmaas
From: Robert B. <rb...@ne...> - 2006-11-15 16:09:51
|
I have been having a bizarre problem while editing LaTeX files: the cursor does not move after entering a '.' or a ','. This is with Vim 7.0.122 teTeX 3.0-23 latexSuite20060325 on Debian/testing and the 2.6.17 Linux kernel. I fixed it by commenting some lines in the main.vim file as indicated in this diff: 73c73 < " call IMAP (g:Tex_Leader.'.', '\cdot', "tex") --- > call IMAP (g:Tex_Leader.'.', '\cdot', "tex") 84c84 < " call IMAP (g:Tex_Leader.',', '\nonumber', "tex") --- > call IMAP (g:Tex_Leader.',', '\nonumber', "tex") 153c153 < " call s:ProtectLetters(32, 127) --- > call s:ProtectLetters(32, 127) 857,861c857,861 < "augroup LatexSuite < " au LatexSuite User LatexSuiteFileType < " \ call Tex_Debug('main.vim: Catching LatexSuiteFileType event', 'main') | < " \ call <SID>SetTeXOptions() < "augroup END --- > augroup LatexSuite > au LatexSuite User LatexSuiteFileType > \ call Tex_Debug('main.vim: Catching LatexSuiteFileType event', 'main') | > \ call <SID>SetTeXOptions() > augroup END I haven't noticed anyone else with this problem so I suspect that it is a result of peculiarity with my machine. Is there a better fix? ---- Robert Burrows, PhD New England Biometrics rb...@ne... |
From: pm5 <po...@gm...> - 2006-11-16 14:08:03
|
Sorry that this is not a direct reply to the original message. I've just joined the mailing list and have no means to reply to previous posts. I had this problem, too. And when I removed vimspell plugin, the problem was gone. I was using vim 6.3 tetex 2.0.2 vim-latexsuite 0.20041219-1 on Debian stable. All Debian packages, along with some other vim plugins. > I have been having a bizarre problem while editing LaTeX files: the cursor > does not move after entering a '.' or a ','. This is with > Vim 7.0.122 > teTeX 3.0-23 > latexSuite20060325 > on Debian/testing and the 2.6.17 Linux kernel. |
From: Robert B. <rb...@ne...> - 2006-11-16 17:32:11
|
On Thu, 16 Nov 2006, pm5 wrote: > Sorry that this is not a direct reply to the original message. I've > just joined the mailing list and have no means to reply to previous > posts. > > I had this problem, too. And when I removed vimspell plugin, the > problem was gone. > > I was using > > vim 6.3 > tetex 2.0.2 > vim-latexsuite 0.20041219-1 > > on Debian stable. All Debian packages, along with some other vim plugins. > >> I have been having a bizarre problem while editing LaTeX files: the cursor >> does not move after entering a '.' or a ','. This is with >> Vim 7.0.122 >> teTeX 3.0-23 >> latexSuite20060325 >> on Debian/testing and the 2.6.17 Linux kernel. This works for me, too. It turns out that commenting the 's:enable_autocommand" lines does the trick. The diff is 1669,1670c1669,1670 < " let s:enable_autocommand=(s:enable_menu || < " \ s:SpellGetOption("spell_auto_type", "Default") != "") --- > let s:enable_autocommand=(s:enable_menu || > \ s:SpellGetOption("spell_auto_type", "Default") != "") 1676,1681c1676,1681 < " if s:enable_autocommand < " augroup SpellCommandPlugin < " au BufEnter * call s:SpellSetupBuffer() < " au FileType * call s:SpellChangeFileType(expand("<amatch>")) < " augroup END < " endif --- > if s:enable_autocommand > augroup SpellCommandPlugin > au BufEnter * call s:SpellSetupBuffer() > au FileType * call s:SpellChangeFileType(expand("<amatch>")) > augroup END > endif ---- Robert Burrows, PhD New England Biometrics rb...@ne... |
From: Kelvie W. <ke...@ie...> - 2006-11-24 09:03:19
|
Hmm, I seem to be having this problem also -- but with the \ (leader) key. I cannot type \c or \\ any more without having an error message pop up. I have temporarily got around this situation with imaps, but I'd like a more permanent solution also. I may have the vimspell plugin installed; to what file does the diff refer to? On 11/16/06, Robert Burrows <rb...@ne...> wrote: > On Thu, 16 Nov 2006, pm5 wrote: > > > Sorry that this is not a direct reply to the original message. I've > > just joined the mailing list and have no means to reply to previous > > posts. > > > > I had this problem, too. And when I removed vimspell plugin, the > > problem was gone. > > > > I was using > > > > vim 6.3 > > tetex 2.0.2 > > vim-latexsuite 0.20041219-1 > > > > on Debian stable. All Debian packages, along with some other vim plugins. > > > >> I have been having a bizarre problem while editing LaTeX files: the cursor > >> does not move after entering a '.' or a ','. This is with > >> Vim 7.0.122 > >> teTeX 3.0-23 > >> latexSuite20060325 > >> on Debian/testing and the 2.6.17 Linux kernel. > > This works for me, too. It turns out that commenting the > 's:enable_autocommand" lines does the trick. The diff is > > 1669,1670c1669,1670 > < " let s:enable_autocommand=(s:enable_menu || > < " \ s:SpellGetOption("spell_auto_type", "Default") != "") > --- > > let s:enable_autocommand=(s:enable_menu || > > \ s:SpellGetOption("spell_auto_type", "Default") != "") > 1676,1681c1676,1681 > < " if s:enable_autocommand > < " augroup SpellCommandPlugin > < " au BufEnter * call s:SpellSetupBuffer() > < " au FileType * call s:SpellChangeFileType(expand("<amatch>")) > < " augroup END > < " endif > --- > > if s:enable_autocommand > > augroup SpellCommandPlugin > > au BufEnter * call s:SpellSetupBuffer() > > au FileType * call s:SpellChangeFileType(expand("<amatch>")) > > augroup END > > endif > > ---- > Robert Burrows, PhD > New England Biometrics > rb...@ne... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > -- Kelvie |
From: Robert B. <rb...@ne...> - 2006-11-24 14:37:15
|
On Fri, 24 Nov 2006, Kelvie Wong wrote: > Hmm, I seem to be having this problem also -- but with the \ (leader) > key. I cannot type \c or \\ any more without having an error message > pop up. > > I have temporarily got around this situation with imaps, but I'd like > a more permanent solution also. > > I may have the vimspell plugin installed; to what file does the diff refer > to? > > On 11/16/06, Robert Burrows <rb...@ne...> wrote: >> >> It turns out that commenting the >> 's:enable_autocommand" lines does the trick. The diff is >> >> 1669,1670c1669,1670 >> < " let s:enable_autocommand=(s:enable_menu || >> < " \ s:SpellGetOption("spell_auto_type", "Default") != "") >> --- >> > let s:enable_autocommand=(s:enable_menu || >> > \ s:SpellGetOption("spell_auto_type", "Default") != "") >> 1676,1681c1676,1681 >> < " if s:enable_autocommand >> < " augroup SpellCommandPlugin >> < " au BufEnter * call s:SpellSetupBuffer() >> < " au FileType * call s:SpellChangeFileType(expand("<amatch>")) >> < " augroup END >> < " endif >> --- >> > if s:enable_autocommand >> > augroup SpellCommandPlugin >> > au BufEnter * call s:SpellSetupBuffer() >> > au FileType * call s:SpellChangeFileType(expand("<amatch>")) >> > augroup END >> > endif Kelvie, This diff refers to the ~/.vim/plugin/vimspell.vim file on my Linux system. In an earlier post I described how I could also fix my problem by modifying the ~/.vim/ftplugin/latex-suite/main.vim file. I can send you that diff if you don't have it. Good luck, ---- Robert Burrows, PhD New England Biometrics rb...@ne... |