Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #225414

Re: midnight commander editor

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: midnight commander editor
Date 2020-07-28 12:50 +0200
Message-ID <Axvlg-1Sa-13@gated-at.bofh.it> (permalink)
References <AxuIx-1EQ-9@gated-at.bofh.it> <AxuIx-1EQ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

midnight commander editor mick crane <mick.crane@gmail.com> - 2020-07-28 12:10 +0200
  Re: midnight commander editor Reco <recoverym4n@enotuniq.net> - 2020-07-28 12:50 +0200
    Re: midnight commander editor Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-28 13:50 +0200
      Re: midnight commander editor mick crane <mick.crane@gmail.com> - 2020-07-28 17:20 +0200

csiph-web