LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-25-2007, 12:19 AM   #1
Shay
Member
 
Registered: Sep 2003
Posts: 69

Rep: Reputation: 15
Make Vim highlight floats and ints in Python files?


This is what I want:
100 vs 100.0

Thank you,
-Shay
 
Old 10-25-2007, 09:31 AM   #2
Shay
Member
 
Registered: Sep 2003
Posts: 69

Original Poster
Rep: Reputation: 15
Code:
au FileType python hi Number term=bold ctermfg=4 guifg=Blue
au FileType python hi Float term=underline ctermfg=5 guifg=Purple
au FileType python syn match Number /\d\+/
au FileType python syn match Float /\d\+[.]\d\+/
-Shay
 
  


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
color highlight in VIM - howyoudothat? chewmanfoo Linux - Software 7 07-02-2007 08:23 AM
highlight matching brackets in vim muddywaters Programming 5 06-26-2006 08:43 AM
How to make own highlight scheme in vim? kornerr Linux - General 2 01-04-2006 08:39 PM
Perl: Binary data to be split into ints, shorts and floats ppanyam Programming 1 12-08-2005 05:27 PM
Python: Reversing ints ie 432 into 234 Luantum Programming 11 12-15-2003 12:54 PM


All times are GMT -5. The time now is 10:54 AM.

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