Results 1 to 4 of 4

Thread: vim highlighting

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    3

    vim highlighting

    Hi,

    I've installed Knoppix 3.6 to my hard drive and started it in run level 3.

    The problem is that I get no syntax highlighting.

    I've checked ~/.vimrc and it has syntax on
    I even added the line: source /usr/share/vim/vim63/syntax/syntax.vim

    I've also added this line to /etc/vim/vimrc

    but I continue to have no hl

    what else should I do?

    Thanks in advance,

    Luis

  2. #2
    Member registered user
    Join Date
    Jun 2004
    Posts
    83

    Re: vim highlighting

    Quote Originally Posted by luis_lupe
    The problem is that I get no syntax highlighting.

    I've checked ~/.vimrc and it has syntax on
    I even added the line: source /usr/share/vim/vim63/syntax/syntax.vim

    I've also added this line to /etc/vim/vimrc
    I don't have Knoppix installed but I suspect that you only have the console vim installed. You probably need the gui vim which on KDE is called kvim. So, firstly remove the source line you added to your .vimrc and /etc/vim/vimrc - you shouldn't need to add anything explicit for syntax highlighting. Then do a "apt-get install kvim" to get it.

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Posts
    3

    console mode

    But I'm only using console mode. The computer where I'm running Knoppix only has 32 MB of memory.

    Still, there should be a way to have vim with syntax highlighting on in console mode.

    The graphic card and monitor support colors.

    Luis

  4. #4
    Member registered user
    Join Date
    Jun 2004
    Posts
    83

    Re: console mode

    Quote Originally Posted by luis_lupe
    But I'm only using console mode. The computer where I'm running Knoppix only has 32 MB of memory.

    Still, there should be a way to have vim with syntax highlighting on in console mode.
    Sorry, I was not clear in my post. I mean that the "console" compiled version of vim probably doesn't have syntax highlighting compiled in. E.g. type ":ver" from within your vim and see if you have "+syntax" or "-syntax". You probably have "-syntax" but if you download and install kvim then "+syntax" will now be turned on (even when you run vim in the console). Note that kvim is just a link to vim which starts vim with the "-g" for gui switch. So when you install kvim you are just installing a bigger vim with more compiled in features. Of course, you won't be running kvim because you will not be running X11.

Posting Permissions

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


HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS picture

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS

$199.00



Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On picture

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On

$450.00



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram  240gb SSD 2x GPU *READ* picture

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*

$369.99



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server picture

Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server

$689.00



1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU   X picture

1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU X

$175.00



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99