Re: midnight commander editor
On 2020-07-28 12:39, Andrei POPESCU wrote: On Ma, 28 iul 20, 13:42:07, Reco wrote: Hi. On Tue, Jul 28, 2020 at 11:00:30AM +0100, mick crane wrote: > hello, > using mc to select files to edit mc editor doesn't recognize vim > syntax colouring so have to press enter to ignore and get the error > messages in terminal. > Any way to have mc recognize colo, syntax options in ~/.vimrc ? [...] There is no way of doing what you want, syntax highlighting is radically different in mcedit and vim. What can be done though is to set 'vim' as the default editor for mc. Ahhh! cheers mick -- Key ID4BFEBB31
Re: midnight commander editor
On Ma, 28 iul 20, 13:42:07, Reco wrote: > Hi. > > On Tue, Jul 28, 2020 at 11:00:30AM +0100, mick crane wrote: > > hello, > > using mc to select files to edit mc editor doesn't recognize vim > > syntax colouring so have to press enter to ignore and get the error > > messages in terminal. > > Any way to have mc recognize colo, syntax options in ~/.vimrc ? [...] > There is no way of doing what you want, syntax highlighting is radically > different in mcedit and vim. What can be done though is to set 'vim' as the default editor for mc. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser signature.asc Description: PGP signature
Re: midnight commander editor
Hi. On Tue, Jul 28, 2020 at 11:00:30AM +0100, mick crane wrote: > hello, > using mc to select files to edit mc editor doesn't recognize vim syntax > colouring so have to press enter to ignore and get the error messages in > terminal. > Any way to have mc recognize colo, syntax options in ~/.vimrc ? mcedit(1), chapter SYNTAX HIGHLIGHTING: wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ # default colors define comment brown context default keyword whole if yellow keyword whole else yellow keyword whole for yellow keyword whole whileyellow keyword whole do yellow keyword whole switch yellow keyword whole case yellow keyword whole static yellow keyword whole extern yellow keyword {brightcyan keyword }brightcyan keyword '*' green Does it have anything in common with a typical syntax/*vim file? syn match plsqlKeyword "\" syn match plsqlKeyword "\.COUNT\>"hs=s+1 syn match plsqlKeyword "\.EXISTS\>"hs=s+1 syn match plsqlKeyword "\.FIRST\>"hs=s+1 syn match plsqlKeyword "\.LAST\>"hs=s+1 syn match plsqlKeyword "\.DELETE\>"hs=s+1 syn match plsqlKeyword "\.PREV\>"hs=s+1 syn match plsqlKeyword "\.NEXT\>"hs=s+1 There is no way of doing what you want, syntax highlighting is radically different in mcedit and vim. Reco
midnight commander editor
hello, using mc to select files to edit mc editor doesn't recognize vim syntax colouring so have to press enter to ignore and get the error messages in terminal. Any way to have mc recognize colo, syntax options in ~/.vimrc ? mick -- Key ID4BFEBB31
Re: Wierdness w/MidNight Commander editor: may be bug??
Dr. Guenter Bechly wrote: Hi, did you install Helix Gnome? I had the same problem after installing Helix Gnome, and it dissapeared after I returned to the original Debian version of mc. Cheers, Guenter ---STUFF SNIPPED I did recently install some Storm linux stuff and I noticed that a lot of their stuff is Helix-Gnome derivatives. So that is most likely the problem. Question is where to report it. John Foster [EMAIL PROTECTED] ICQ# 19460173
Re: Wierdness w/MidNight Commander editor: may be bug??
On Tue, Sep 05, 2000 at 09:26:30AM -0500, John Foster wrote: be O.K. after I do Dismiss it. This does not happen if I am logged on as a regular user. To make this even weirder this seems to be only when I am editing the file /etc/apt/sources.list Error in file /root/.cedit/Syntax on line 91 I get the same error every time - even as regular user. Johann. -- J.H. Spies, Hugenotestraat 29, Posbus 80, Franschhoek, 7690, South Africa Tel/Faks 021-876-2337 Sel/Cell 082 898 1528(Johann) 082 255 2388(Hester) For whosoever shall call upon the name of the Lord shall be saved. Romans 10:13
Wierdness w/MidNight Commander editor: may be bug??
Any time I try to edit a file using the mc internal editor as root I get this error message with the option to Dismiss it. Editing seems to be O.K. after I do Dismiss it. This does not happen if I am logged on as a regular user. To make this even weirder this seems to be only when I am editing the file /etc/apt/sources.list Error in file /root/.cedit/Syntax on line 91 Please advise if anyone else has noticed this. I am attaching a copy of the offending file named Syntax. -- John Foster [EMAIL PROTECTED] ICQ# 19460173# syntax rules version 63 # (after the slash is a Cooledit color, 0-26 or any of the X colors in rgb.txt) # black # red # green # brown # blue # magenta # cyan # lightgray # gray # brightred # brightgreen # yellow # brightblue # brightmagenta # brightcyan # white file gobledy_gook #\sHelp\ssupport\sother\sfile\stypes context default file gobledy_gook #\sby\scoding\srules\sin\s~/.cedit/syntax. context default file gobledy_gook #\sSee\sman/syntax\sin\sthe\ssource\sdistribution context default file gobledy_gook #\sand\sconsult\sthe\sman\spage. context default file ..\*\\.diff$ Unified\sDiff\sOutput ^diff.\*(-u|--unified) include diff.syntax file ..\*\\.diff$ Context\sDiff\sOutput ^diff.\*(-c|--context) include diffc.syntax file ..\*\\.lsm$ LSM\sFile include lsm.syntax file ..\*\\.sh$ Shell\sScript ^#!\s\*/.\*/(ksh|bash|sh|pdkzsh) include sh.syntax file ..\*\\.(pl|PL])$ Perl\sProgram ^#!\s\*/.\*/perl include perl.syntax file ..\*\\.(py|PY])$ Python\sProgram ^#!\s\*/.\*/python include python.syntax file ..\*\\.(man|[0-9n]|[0-9]x)$ NROFF\sSource include nroff.syntax file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile include html.syntax file ..\*\\.(pp|PP|pas|PAS)$ Pascal\sProgram include pascal.syntax file ..\*\\.(ada|adb|ADA|ADB)$ Ada\sProgram include ada95.syntax file ..\*\\.tex$ LaTeX\s2.09\sDocument include latex.syntax file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument include texinfo.syntax file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX)$ C/C\+\+\sProgram include c.syntax file ..\*\\.i$ SWIG\sSource include swig.syntax file ..\*\\.(java|JAVA|Java|jav)$ Java\sProgram include java.syntax file ..\*\\.(st)$ SmallTalk\sProgram include smalltalk.syntax file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram include ml.syntax file .\*ChangeLog$ GNU\sDistribution\sChangeLog\sFile include changelog.syntax file .\*Makefile[\\\.a-z]\*$ Makefile include makefile.syntax file Don_t_match_me Mail\sfolder ^From\s include mail.syntax file sources.list$ sources\slist include debian-sources.list.syntax file control$ Debian\scontrol\sfile include debian-control.syntax file rules$ Debian\srules include makefile.syntax file .\*changelog$ Debian\schangelog\sfile include debian-changelog.syntax file .\*syntax$ Syntax\sHighlighting\sdefinitions context default keyword whole spellch\eck yellow/24 keyword whole keyw\ord yellow/24 keyword whole whole\[\t\s\]l\inestart brightcyan/17 keyword whole whole\[\t\s\]l\inestart brightcyan/17 keyword whole wh\oleleft\[\t\s\]l\inestart brightcyan/17 keyword whole wh\oleright\[\t\s\]l\inestart brightcyan/17 keyword whole l\inestart\[\t\s\]wh\ole keyword whole l\inestart\[\t\s\]wh\ole keyword whole l\inestart\[\t\s\]wh\oleleft keyword whole l\inestart\[\t\s\]wh\oleright keyword wholeleft whole\s brightcyan/17 keyword wholeleft whole\t brightcyan/17 keyword whole wh\oleleft brightcyan/17 keyword whole wh\oleright brightcyan/17 keyword whole lin\[e\]start brightcyan/17 keyword whole c\ontext\[\t\s\]exclusive brightred/18 keyword whole c\ontext\[\t\s\]default brightred/18 keyword whole c\ontext brightred/18 keyword whole wh\olechars\[\t\s\]left brightcyan/17 keyword whole wh\olechars\[\t\s\]right brightcyan/17 keyword whole wh\olechars brightcyan/17 keyword whole f\ile brightgreen/6 keyword whole in\clude brightred/18 keyword whole 0 lightgray/0 blue/26 keyword whole 1 lightgray/1 blue/26 keyword whole 2 lightgray/2 blue/26 keyword whole 3 lightgray/3 blue/26 keyword whole 4 lightgray/4 blue/26 keyword whole 5 lightgray/5 blue/26 keyword whole 6 lightgray/6 keyword whole 7 lightgray/7 keyword whole 8 lightgray/8 keyword whole 9 lightgray/9 keyword whole 10 lightgray/10 keyword whole 11 lightgray/11 keyword whole 12 lightgray/12 keyword whole 13 lightgray/13 keyword whole 14 lightgray/14 keyword whole 15 lightgray/15 keyword whole 16 lightgray/16 keyword whole 17 lightgray/17 keyword whole 18 lightgray/18 keyword whole 19 lightgray/19 keyword whole 20 lightgray/20 keyword whole 21 lightgray/21 keyword whole 22 lightgray/22 keyword whole 23 lightgray/23 keyword whole 24 lightgray/24 keyword whole 25 lightgray/25 keyword whole 26 lightgray/26 keyword wholeleft black\/ black/0 keyword wholeleft red\/ red/DarkRed keyword
Re: Wierdness w/MidNight Commander editor: may be bug??
Hi, did you install Helix Gnome? I had the same problem after installing Helix Gnome, and it dissapeared after I returned to the original Debian version of mc. Cheers, Guenter -- Linux: Who needs GATES in a world without fences?