Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-25-2007, 01:19 AM   #1
Registered: Sep 2003
Posts: 77

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

This is what I want:
100 vs 100.0

Thank you,
Old 10-25-2007, 10:31 AM   #2
Registered: Sep 2003
Posts: 77

Original Poster
Rep: Reputation: 15
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\+/


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

All times are GMT -5. The time now is 11:51 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