Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-19-2009, 07:14 PM   #1
Registered: Aug 2009
Posts: 50

Rep: Reputation: 17
Question What's the best way to get LaTeX syntax highlighting in vim on slackware?

How do the TeX slackers around here get syntax highlighting for LaTeX in vim? I know a lot of you guys like to edit .tex files with vim from what I've seen on the forums, so I'd really like to know what the common solutions around here are. Is it a simple .vimrc appendage or do I have to go download and install a few packages? Googling about the issue turns out a whole bunch of old results, conflicting results, and results that don't necessarily pertain to slackware. Also, are there any other vim + latex gems the slackers of the internet would like to share?
Old 12-19-2009, 07:30 PM   #2
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Maybe what you need is adding "set t_Co=256" in your .vimrc
1 members found this post helpful.
Old 12-19-2009, 07:34 PM   #3
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
You might need "syn on" in your .vimrc
1 members found this post helpful.
Old 12-20-2009, 11:23 AM   #4
Registered: Aug 2009
Posts: 50

Original Poster
Rep: Reputation: 17
Beautiful! Both of those worked perfectly and I now have an awesome LaTeX + Linux setup on my computer!

Honestly, I was a bit reluctant to post this and expected at least one RTFM or GTFQ (Google the ... question) n00b, even though that was the first place I looked, but you guys gave me the help I needed within hours. I love the Slackware community!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vim syntax highlighting Gortex Programming 1 08-18-2008 05:43 PM
VIM Syntax Highlighting JMJ_coder Programming 3 03-05-2008 04:37 PM
[SOLVED] vim without syntax highlighting lord_didger Debian 5 11-18-2006 01:29 PM
vim syntax highlighting MiniMe001 Linux - General 2 06-19-2005 11:08 AM
Vim syntax highlighting NSKL Linux - Software 2 11-09-2002 02:39 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration