LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Make Vim highlight floats and ints in Python files? (http://www.linuxquestions.org/questions/linux-software-2/make-vim-highlight-floats-and-ints-in-python-files-594398/)

Shay 10-25-2007 12:19 AM

Make Vim highlight floats and ints in Python files?
 
This is what I want:
100 vs 100.0

Thank you,
-Shay

Shay 10-25-2007 09:31 AM

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


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