-
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
-
Re: vim highlighting

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.
-
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
-
Re: console mode

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
-
Forum Rules

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM
$1625.00

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed
$49.99

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001
$245.00

Windows Server 2022 | Intel 18-Core Xeon | 32GB ECC DDR4 | 256GB SSD | 3TB HDD
$635.00

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server
$349.99