I've been using this for a while and have added missing functions to the highlighting and also added my own autocomplete through completefunc. I've uploaded these files as a standalone so the other few Vim Oblivion modders can use them: https://www.nexusmods.com/oblivion/mods/50024/
Thanks for the original file, its been very useful!!!
In response to post #24221789. #24304399 is also a reply to the same post.
Spoiler:
Show
UltharSeramis wrote:
sandone wrote: Thanks, Ulthar! And it appears to work as you said if I place it in the plugins directory (if I open the sample .obl file, it will do proper syntax highlighting). Maybe the Mint/Ubuntu builds of Vim are a little different, I'm not sure. If you'd like and I have time, perhaps I could help add to it, but I'm sure it's not that simple. I do have a folder with every OBSE plugin that I could find though, for the sake of knowing what I could use for what if the situation came up while modding XD
Hi again Ulthar,
I've added every function from every OBSE plugin I know of, dumped from the obse_loader.log and obse_editor.log. If you're interested, I can send you the obse.vim file for you to look over (I simply took what you made and added functions in the same format with "syn keyword" and "hi def link ... Function")
Razzy
Hi,
cool thing. Just send me a PM (hope it works). I can then take a look over the file. If everything is OK I will update the plugin (with credits for your work, of course).
thanks for endorsing my little plugin. The folder "ftdetect" may not exist after installing vim. Its purpose is to automatically execute vim-scripts to set the filetype of a certain file. In this case, if you open up a file with the ".obl"-extension in vim, it will automatically set the correct filetype, so the correct syntax highlighting will be applied. This folder actually isn't really necessary, but without it you have to set the filetype manually. I may add highlighting for OBSE plugins, but at the moment I do not have enough time to do it. When having a bit more free time, I'll add them.
Thanks, Ulthar! And it appears to work as you said if I place it in the plugins directory (if I open the sample .obl file, it will do proper syntax highlighting). Maybe the Mint/Ubuntu builds of Vim are a little different, I'm not sure. If you'd like and I have time, perhaps I could help add to it, but I'm sure it's not that simple. I do have a folder with every OBSE plugin that I could find though, for the sake of knowing what I could use for what if the situation came up while modding XD
I've added every function from every OBSE plugin I know of, dumped from the obse_loader.log and obse_editor.log. If you're interested, I can send you the obse.vim file for you to look over (I simply took what you made and added functions in the same format with "syn keyword" and "hi def link ... Function")
I ran into a small bit of confusion when trying to install it (on Linux Mint): where your folder is "ftdetect", it seems to be "plugin" instead for me. The full directory would be (if installed through apt) /usr/share/vim/vim74/plugin/ and /usr/share/vim/vim74/syntax Would you be willing to add (though it's not necessary) syntax highlighting for other methods and variables from other OBSE plugins? (e.g. CameraCommands, NIFSE, Blockhead, Oblivion EAX, etc.) I know it's probably a bit of work to go through the documentation and add more. Thank you very much for this though, it will help a lot when I try to write scripts ^_^
This is brilliant, thanks so much for making it! You should consider uploading it to vim.org though. I wasn't expecting to find such a thing here and only came across it by accident.
I'm glad you like what i made. You mentioned a good point (I totally forgot the OBSE types). I will add them as soon as possible (if I found the time maybe even today).
I've been looking for something like this for awhile, thanks for making it. Are there any plans for highlighting the obse variable types, like string_var and int?
10 comments
Thanks for the original file, its been very useful!!!
Hi,
cool thing. Just send me a PM (hope it works). I can then take a look over the file. If everything is OK I will update the plugin (with credits for your work, of course).
UltharSeramis
thanks for endorsing my little plugin.
The folder "ftdetect" may not exist after installing vim. Its purpose is to automatically execute vim-scripts to set the filetype of a certain file. In this case, if you open up a file with the ".obl"-extension in vim, it will automatically set the correct filetype, so the correct syntax highlighting will be applied. This folder actually isn't really necessary, but without it you have to set the filetype manually.
I may add highlighting for OBSE plugins, but at the moment I do not have enough time to do it. When having a bit more free time, I'll add them.
Greetings,
Ulthar Seramis
I've added every function from every OBSE plugin I know of, dumped from the obse_loader.log and obse_editor.log. If you're interested, I can send you the obse.vim file for you to look over (I simply took what you made and added functions in the same format with "syn keyword" and "hi def link ... Function")
Razzy
Would you be willing to add (though it's not necessary) syntax highlighting for other methods and variables from other OBSE plugins? (e.g. CameraCommands, NIFSE, Blockhead, Oblivion EAX, etc.) I know it's probably a bit of work to go through the documentation and add more. Thank you very much for this though, it will help a lot when I try to write scripts ^_^
I'm glad you like what i made.
You mentioned a good point (I totally forgot the OBSE types). I will add them as soon as possible (if I found the time maybe even today).
Greatings, UltharSeramis