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 while yellow
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 "\<END\>"
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
Reply to: