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
  •  


WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay

$107.99



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00 picture

Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00

$500.00



QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working picture

QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working

$149.99



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



2-Bay/4-Bay Hard Drive Enclosure for 3.5

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2

$75.99



Dell 3KDWX PERC H755 12G 8GB Cache Front RAID Controller picture

Dell 3KDWX PERC H755 12G 8GB Cache Front RAID Controller

$999.99



PCI to 4 Ports SATA Controller RAID CARD Pci sata Sil3114 Supports 3TBx4 HDD picture

PCI to 4 Ports SATA Controller RAID CARD Pci sata Sil3114 Supports 3TBx4 HDD

$18.90



Dell EMC 15-Bay 3.5

Dell EMC 15-Bay 3.5" SAS Disk Array Enclosure 12Gbps Dual LCC - 2x Power Supply

$249.00



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00