[MacPorts] #28093: vim @7.3.102_0 LaTeX Error
#28093: vim @7.3.102_0 LaTeX Error -------------------------------------+-------------------------------------- Reporter: smokejumperit@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: vim, latex | Port: vim -------------------------------------+-------------------------------------- Ever since upgrading, when I create a file which ends with ".tex" and contains only the line "\documentclass{article}" (or any LaTeX file beginning with that line), and then open it with vim, I get a screen full of errors like: E10: \ should be followed by /, ?, or & That screen of errors goes away quickly, and then everything works fine. -- Ticket URL: <https://trac.macports.org/ticket/28093> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28093: vim @7.3.102_0 LaTeX Error -------------------------------------+-------------------------------------- Reporter: smokejumperit@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: vim, latex | Port: vim -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => raimue@… Old description:
Ever since upgrading, when I create a file which ends with ".tex" and contains only the line "\documentclass{article}" (or any LaTeX file beginning with that line), and then open it with vim, I get a screen full of errors like:
E10: \ should be followed by /, ?, or &
That screen of errors goes away quickly, and then everything works fine.
New description: Ever since upgrading, when I create a file which ends with ".tex" and contains only the line "\documentclass{article}" (or any LaTeX file beginning with that line), and then open it with vim, I get a screen full of errors like: {{{ E10: \ should be followed by /, ?, or & }}} That screen of errors goes away quickly, and then everything works fine. -- -- Ticket URL: <https://trac.macports.org/ticket/28093#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28093: vim @7.3.102_0 LaTeX Error -------------------------------------+-------------------------------------- Reporter: smokejumperit@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: vim, latex | Port: vim -------------------------------------+-------------------------------------- Changes (by raimue@…): * status: new => assigned Comment: I can't reproduce this. I suppose you have some plugin which tries to parse the tex file and can't handle that. Does it still happen without plugins and .vimrc disabled? {{{ vim --noplugin -u /dev/null }}} -- Ticket URL: <https://trac.macports.org/ticket/28093#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28093: vim @7.3.102_0 LaTeX Error -------------------------------------+-------------------------------------- Reporter: smokejumperit@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: vim, latex | Port: vim -------------------------------------+-------------------------------------- Comment(by smokejumperit@…): Using your tip, I tracked it down to "syntax enable" in ~/.exrc. That's not a surprise, given the behavior. To my knowledge, I never installed syntax highlighting for LaTeX---it just shipped with vi. That's why I opened a ticket for MacPorts. Where/how would I find the syntax highlighting script that might be causing the problem? -- Ticket URL: <https://trac.macports.org/ticket/28093#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28093: vim @7.3.102_0 LaTeX Error --------------------------------------+------------------------------------- Reporter: smokejumperit@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: vim, latex Port: vim | --------------------------------------+------------------------------------- Changes (by raimue@…): * status: assigned => closed * resolution: => worksforme Comment: If you are using ~/.exrc it is very likely that vim is running in `compatible` mode, emulating the classic vi. Check for this using `:set compatible?`. If it says 'compatible', the script syntax is limited and does not support line continuation using '\' which the syntax file in question probably uses. Try adding a `set nocompatible` at the beginning of your .exrc or even switch to .vimrc which would set this automatically. -- Ticket URL: <https://trac.macports.org/ticket/28093#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28093: vim @7.3.102_0 LaTeX Error --------------------------------------+------------------------------------- Reporter: smokejumperit@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: vim, latex Port: vim | --------------------------------------+------------------------------------- Comment(by smokejumperit@…): Alright, I'm embarrassed to say that fixed it. Thanks for the tip. ~~ Robert. -- Ticket URL: <https://trac.macports.org/ticket/28093#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts