VIM - no syntax highlighting on console

Ask a Question related to Debian, Design and Development.

  1. #1

    Default Re: VIM - no syntax highlighting on console

    On Sat, 02 Aug 2003 22:20:06 +0200
    Jaque Moreau <mr.wimpy@firemail.de> wrote:
    > there is no syntax highlighting on console, only under xterm.
    >
    > syntax on is enabled in global vimrc.
    >
    > where should I dig further?
    >
    > what information do you need?
    In command mode (in VI), type ":syntax on" and see if that fixes it. I would suppose, if it does, that either the global vimrc does not set it on, or it is set off by another config file somewhere.

    It should not be an issue of the console supporting color, because it works for me without any kind of framebuffer, etc.
    --
    -johann koenig
    now playing: Mass Hysteria - Please Please Please
    Today is Prickle-Prickle, the 68th day of Confusion in the YOLD 3169
    My public pgp key: [url]http://mental-graffiti.com/pgp/johannkoenig.pgp[/url]

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/LC58Fk4duwOzQpURAkRlAJ0QmV7B9eNXv8rqOZRZYDAdhBX5QA CfSYOD
    avVo6z/HdlMfxbIVGUUa3hc=
    =xS2O
    -----END PGP SIGNATURE-----

    Johann Koenig Guest

  2. Similar Questions and Discussions

    1. Syntax-Highlighting
      Hi there, is there a plug-in or extension for dreamweaver which enables syntax-highlighting ? Thank you very much, greets, ben
    2. SQL query text breaks syntax highlighting
      The following code messes up dreamweaver's syntax highlighting. Im assuming it's because the parser sees the bracket and thinks it's a tag. ...
    3. Perl Syntax Highlighting
      Greetings fellow members, I am in search for Perl/CGI definitions for use within CodeColoring.xml and Colors.xml. Perl syntax highlighting would...
    4. custom syntax highlighting in html-kit
      Hello, I'd REALLY REALLY like to be able to modify the syntax highlighting in html-kit. Is this possible? Right now in PHP if you have a line...
    5. #24550 [Ver->Csd]: tokenizing & syntax highlighting crashes
      ID: 24550 Updated by: stas@php.net Reported By: hos dot endre at axelero dot hu -Status: Verified +Status: ...
  3. #2

    Default Re: VIM - no syntax highlighting on console

    Johann Koenig schrieb im Artikel <gcAa.3Bm.17@gated-at.bofh.it>:
    > --=.5UPOgFdrEYOzCL
    > Content-Type: text/plain; charset=US-ASCII
    > Content-Transfer-Encoding: 7bit
    >
    > On Sat, 02 Aug 2003 22:20:06 +0200
    > Jaque Moreau <mr.wimpy@firemail.de> wrote:
    >
    >> there is no syntax highlighting on console, only under xterm.
    >>
    >> syntax on is enabled in global vimrc.
    >>
    >> where should I dig further?
    >>
    >> what information do you need?
    >
    > In command mode (in VI), type ":syntax on" and see if that fixes it. I would suppose, if it does, that either the global vimrc does not set it on, or it is set off by another config file somewhere.
    it didn't work.
    > It should not be an issue of the console supporting color, because it works for me without any kind of framebuffer, etc.


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Jaque Moreau Guest

  4. #3

    Default Re: VIM - no syntax highlighting on console

    Jaque Moreau <mr.wimpy@firemail.de> writes:
    > Johann Koenig schrieb im Artikel <gcAa.3Bm.17@gated-at.bofh.it>:
    > > --=.5UPOgFdrEYOzCL
    > > Content-Type: text/plain; charset=US-ASCII
    > > Content-Transfer-Encoding: 7bit
    > >
    > > On Sat, 02 Aug 2003 22:20:06 +0200
    > > Jaque Moreau <mr.wimpy@firemail.de> wrote:
    > >
    > >> there is no syntax highlighting on console, only under xterm.
    > > In command mode (in VI), type ":syntax on" and see if that fixes
    > > it. I would suppose, if it does, that either the global vimrc does
    > > not set it on, or it is set off by another config file somewhere.
    >
    > it didn't work.
    Check your TERM variable.

    Regards,
    Santanu


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Santanu Chatterjee Guest

  5. #4

    Default Re: VIM - no syntax highlighting on console

    Jaque Moreau <mr.wimpy@firemail.de> writes:
    > Johann Koenig schrieb im Artikel <gcAa.3Bm.17@gated-at.bofh.it>:
    > > Jaque Moreau <mr.wimpy@firemail.de> wrote:
    > >
    > >> there is no syntax highlighting on console, only under xterm.
    > >> syntax on is enabled in global vimrc.
    >
    > it didn't work.
    >
    try
    :set term=$TERM

    Regards,
    Santanu


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Santanu Chatterjee Guest

  6. #5

    Default Re: VIM - no syntax highlighting on console

    >> it didn't work.
    >
    > Check your TERM variable.
    TERM=linux


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Jaque Moreau Guest

  7. #6

    Default Re: VIM - no syntax highlighting on console

    Jaque Moreau <mr.wimpy@firemail.de> writes:
    > >> it didn't work.
    > >>
    > > try
    > >:set term=$TERM
    >
    > in vim? What does it do?
    I read this thread from the middle and missed the rest. So, if I
    understood your question correctly, you got colors in terminal, but not
    while in vim. If that is true, you have a terminal that supports
    color, but vim does not know about it. In that case see the value of
    the $TERM variable at the terminal, and set that value in Vim as
    mentioned above, replacing $TERM with the actual value you got.

    For example, in one of our Slackware machines at college, Vim did not
    show colors when the term variable was set to xterm. It showed colors
    only after I changed it to xterm-color using

    :set term=xterm-color

    HTH
    Santanu



    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Santanu Chatterjee Guest

  8. #7

    Default Re: VIM - no syntax highlighting on console

    Santanu Chatterjee schrieb im Artikel <h7oA.2t1.5@gated-at.bofh.it>:
    > Jaque Moreau <mr.wimpy@firemail.de> writes:
    >
    >> >> it didn't work.
    >> >>
    >> > try
    >> >:set term=$TERM
    >>
    >> in vim? What does it do?
    >
    > I read this thread from the middle and missed the rest. So, if I
    > understood your question correctly, you got colors in terminal, but not
    > while in vim. If that is true, you have a terminal that supports
    > color, but vim does not know about it. In that case see the value of
    > the $TERM variable at the terminal, and set that value in Vim as
    > mentioned above, replacing $TERM with the actual value you got.
    so this would mean I would have to set $TERM to linux as it is set to
    linux by default and other software is able to use colors.

    I'll try if I am at home again.


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Jaque Moreau Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139