-
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

Vintage Computer Peripherals Inc. Ramsack III ISA Memory Expansion 16bit 8 SIMM
$85.00

Vintage HP 21MX 1000 M-Series Minicomputer Chassis Backplane Parts AS-IS
$228.19

vintage Gateway motherboard, socket 370 1ghz cpu, 256mb ram, cables, power switc
$69.99

Lot of 2 Vintage Plextor PX-43CS SCSI CD-ROM Caddy Drives + 4 Caddies Used
$55.99

Compaq 242506-001 Netelligent 100 FDDI DAS Fiber SC PCI Network Adapter Vintage
$249.00

Vintage Retro NOS Seagate ST-277R-1 65MB 5.25" RLL Hard Drive Vintage XT AT Era
$129.95

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot
$316.95

Abacus Software Vintage Commodore 64 Book Lot 3: Printer, Sci & Eng, ML
$100.00

Vintage Personal Accounting & Essential Office 2 CD-ROM PAK For Windows 3.0
$114.00

Vintage Teac FD-505 5.25" 3.5" Combo Drive 19307571-00
$199.99