LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-19-2009, 07:14 PM   #1
Allamgir
Member
 
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
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 421

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
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 110Reputation: 110
You might need "syn on" in your .vimrc
 
1 members found this post helpful.
Old 12-20-2009, 11:23 AM   #4
Allamgir
Member
 
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!
 
  


Reply


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


All times are GMT -5. The time now is 12:51 PM.

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