Page 1 of 1

VIM script for Ren'Py syntax highlighting?

Posted: Mon Sep 06, 2010 6:42 pm
by LordShiranai
To avoid reinventing the wheel, I was curious if anyone has already created a VIM script for Ren'Py syntax highlighting.

I am considering making one eventually if one does not already exist, since I cannot seem to find anything mentioned on the forums.

Re: VIM script for Ren'Py syntax highlighting?

Posted: Mon Sep 06, 2010 8:15 pm
by PyTom
I don't know of any. (I have an emacs mode I use, but it's a bit out of date.)

Re: VIM script for Ren'Py syntax highlighting?

Posted: Tue Sep 07, 2010 6:52 pm
by Spiky Caterpillar
My (rather incomplete and outdated, as I tend to only add things to it if I'm actively using them) renpy syntax file can be grabbed from
http://spikycaterpillar.dreamhosters.com/renpy.vim

Re: VIM script for Ren'Py syntax highlighting?

Posted: Tue Sep 07, 2010 7:49 pm
by LordShiranai
Thank you kindly. :)

Re: VIM script for Ren'Py syntax highlighting?

Posted: Sun Oct 09, 2011 7:42 pm
by Musashi
I found Spiky's syntax file very useful, so I used it, then added some improvements:
  • Spell-checking support
    String tags and escaped characters
    String interpolations (including the new-style interpolations in 6.13)
    Auto-indenting using spaces; the tab key produces four spaces
    Tab characters are highlighted as errors
    TODOs are highlighted in the comments
    More keywords and functions are recognized
    Update: Single-line and block Python sections are highlighted using Python rules
http://yesoidos.sourceforge.net/upload/renpy.vim
Update: https://github.com/chaimleib/vim-renpy

Known Bugs:
Multi-line Python sections aren't recognized properly. Doesn't affect anything else.

Another Vim-related tool:
I have also made an editor file for the Ren'Py launcher, which will launch a GUI version of Vim if you click "Edit Script" or "Check Script (Lint)". It only works with MacVim for Mac OS X so far, but I think it should be easy to get it working on Windows and Linux.

http://yesoidos.sourceforge.net/upload/vim.editor.py

Updated, 2014-12-16: New features, new file location.

Re: VIM script for Ren'Py syntax highlighting?

Posted: Fri Jun 26, 2020 4:04 pm
by otaking
https://github.com/chaimleib/vim-renpy

This is pretty old. Last update was 5 years ago. Does it still work? Is there anything that still gets updated. Sorry that I am replying to an old thread.