-
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

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM
$159.99

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro
$316.61

Dell Latitude 14" Laptop Computer Intel i7 Up To 32GB RAM 1TB SSD Windows 11 Pro
$349.48

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac
$19.99

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1
$99.99

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb
$1746.47

Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot
$129.99

Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070
$1469.00

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$90.00

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive
$34.99