Hollywood plugin for Vim released
Posted: Wed Jul 26, 2017 9:11 pm
As announced by Tom on the Hollywood mailing list:
Download now available from http://www.hollywood-mal.com/Hi Andreas,
to avoid any hassle when editing hollywood scripts on different platforms
and being able to enjoy the comfort of a *proper* text editor, I wrote a
syntax highlighting script with basic error checking for the very best
editor ever: VIM . See attechment.
Installation:
Extract the archive within your ".vim"-directory on linux
or "_vimfiles"-folder on Windows.
It is not deeply tested but it meets my current needs. Might be, that I
improve it over time. However, i thought, it could be useful for others,
too. So, feel free to distribute it if u like.
Feedback is welcome
Credits go to:
1) the authors of the original "lua.vim" script "Marcus Aurelius
Farias" and "Carlos Augusto Teixeira Mendes" for the original LUA
syntax highlighting script.
(Though, LUA differs from Hollywood a lot more then expected)
2) the authors (unknown to me) of the ultraedit syntax highlighting
script. I conveniently borrowed Hollywood 7.0's constant and function
definitions from it.
Remarks on the highlighting:
1) In addition to the internal hollywood functions, the script also
highlights user-defined functions in case they follow the recommended
schema that those functions should starte with the prefix "p_", e.g.
p_myfucntion();
2) Highlighting Issues: Depending on your VIM colour schema, Strings or
Comments might be highlighted in a way, you don't like. (I use xterm with
black background). If so, try one of the following settings after opening
a hollywood script:
:hi link hwString MoreMsg
:hi link hwString NonText
:hi link hwString String
and for comments:
:hi link hwComment MoreMsg
:hi link hwComment NonText
:hi link hwComment Comment
Remember the setting you like and change the corresponding definition
at the bottom of the hollywood.vim file. Restart VIM. Done.
3) Should work for Vim on AmigaOS, too. However, due to her non-colour
termcap emulation it is only of minor help.
4) Feedback is welcome
Cheers,
Tom