Description
I've just started using Vim for programming and was disappointed with the (v)JASS highlighting from jass.vim in Vexorian's signature. as it used default highlighting (or close to it) as TESH. Which is one I don't like.
Also, the attached settings file makes Vim startup defaulting ir_black and (v)JASS as well as defaulting Consolas 9pt font and the window maximized, which if you've used Vim before, is defaulted to not maximize on startup.
And why use Vim? Because it's a hell of a lot better than most (if not all) editors out there and is (to me) on par with Notepad++ depending on what I'm using them for. Also, Bespin
Trust me, once you get the hang of Vim, you'll love it. Plus, editing is such a breeze to learn. I've only really used Vim for maybe 6 hours. All that time was spent MAKING THIS TOOL. That's how intuitive this program is. When you see the syntax for configuration, it's very easy to pick up and understand.
My TESH is setup to look like:
Preview
How to Preview
Open your resident text editor (most commonly Notepad on Windows users' pc's).
Copy the code in the tags into it.
Save it as an html file (Replace .txt with .html and select All File Types then save)
Open it with your internet browser.
How to Install
Move _vimrc into PROGRAM FILES DIR\Vim\
Move jass.vim and cjass.vim and ir_black.vim into PROGRAM FLES DIR\Vim\vim72\colors\
NOTE: "vim72" is subject to change according to the installed version of Vim.
How to Edit
Don't like the current colors?
Then, edit it. It's fairly simple.
Go into ir_black.vim to change the colors and such.
Go into jass.vim or cjass.vim to change the words for highlighting.
Go into _vimrc to change stuff like fonts and start maximized.
_vimrc also contains the default syntax.
ir_black.vim will contain the colors for highlighting in the format:
Change "Normal" to the name of the color type (HiLink GROUP to COLORTYPE).
Change guifg to the Hex color of your choosing. 7C7C7C is grayish. guibg=black is the background color. gui=NONE is effects like Bold, Underline, and Italics. ctermfg=NONE I have no idea. ctermbg=NONE I also have no idea. cterm=NONE No idea. I've not worked with them as of yet.
jass.vim includes the words in this format:
syn declares a group, keyword declares the type of group, jassType is the name and agent the word to look for.
At the bottom of jass.vim there is also:
This links jassType to the hi (hi in ir_black.vim) Type. If you add new groups, be sure to also remember to link them.
In _vimrc the only part you need to worry about is:
colorscheme ir_black makes it the black theme.
set guifont=Consolas:h9 makes the font Consolas with size 9.
set nu! enables line numbers.
set ai! enables autoindent.
syntax on enables syntax highlighting.
au GUIEnter * simalt ~x maximizes the window.
colorscheme jass enables JASS text highlighting.
Edit as you wish.
Other User Created JASS Schemes
NOTE: You better damn be grateful if you use Vim. And there better be a damn large Vim user community who codes in JASS. I broke my fingers editing those like 4000 lines. And I still have many more lines in Blizzard.j and common.ai to work through.
I've just started using Vim for programming and was disappointed with the (v)JASS highlighting from jass.vim in Vexorian's signature. as it used default highlighting (or close to it) as TESH. Which is one I don't like.
Also, the attached settings file makes Vim startup defaulting ir_black and (v)JASS as well as defaulting Consolas 9pt font and the window maximized, which if you've used Vim before, is defaulted to not maximize on startup.
And why use Vim? Because it's a hell of a lot better than most (if not all) editors out there and is (to me) on par with Notepad++ depending on what I'm using them for. Also, Bespin
Trust me, once you get the hang of Vim, you'll love it. Plus, editing is such a breeze to learn. I've only really used Vim for maybe 6 hours. All that time was spent MAKING THIS TOOL. That's how intuitive this program is. When you see the syntax for configuration, it's very easy to pick up and understand.
My TESH is setup to look like:
Preview
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>C:\Windows\System32\Untitled.html</title>
<meta name="Generator" content="Vim/7.2">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#7c7c7c"><font face="monospace">
<span style="background-color: #000000"><font color="#3d3d3d"> 1 </font></span><font color="#ffffff"><b>scope</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">Test</font></span><font color="#cd3700"> </font><font color="#ffffff"><b>initializer</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">Ini</font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 2 </font></span><font color="#cd3700"> </font><font color="#ffffff">private</font><font color="#cd3700"> </font><font color="#ffffff"><b>struct</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">s</font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 3 </font></span><font color="#cd3700"> </font><font color="#0055aa"><b>unit</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">u</font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 4 </font></span><font color="#cd3700"> </font><font color="#0055aa"><b>player</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">p</font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 5 </font></span><font color="#cd3700"> </font><font color="#0055aa"><b>item</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">i</font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 6 </font></span><font color="#cd3700"> </font><font color="#ffffff"><b>static</b></font><font color="#cd3700"> </font><font color="#ffffff"><b>method</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">create</font></span><font color="#cd3700"> </font><font color="#ffffff">takes</font><font color="#cd3700"> </font><font color="#0055aa"><b>nothing</b></font><font color="#cd3700"> </font><font color="#ffffff">returns</font><font color="#cd3700"> </font><font color="#0055aa"><b>thistype</b></font><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 7 </font></span><font color="#cd3700"> </font><font color="#ffffff">local</font><font color="#cd3700"> </font><font color="#0055aa"><b>thistype</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><font color="#cd3700"> = </font><font color="#0055aa"><b>thistype</b></font><font color="#0055aa">.</font><span style="background-color: #000000"><font color="#7c7c7c">allocate</font></span><font color="#cd3700">()</font><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 8 </font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d"> 9 </font></span><font color="#cd3700"> </font><font color="#ffffff">set</font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><font color="#0055aa">.</font><span style="background-color: #000000"><font color="#7c7c7c">u</font></span><font color="#cd3700"> = </font><font color="#008080">CreateUnit</font><font color="#cd3700">(</font><font color="#008080">GetLocalPlayer</font><font color="#cd3700">()</font><font color="#cd3700">, </font><font color="#ffff00"><b><i><u>'hfoo'</u></i></b></font><font color="#cd3700">, </font><font color="#0055aa">0</font><font color="#cd3700">, </font><font color="#0055aa">0</font><font color="#cd3700">, </font><font color="#0055aa">0</font><font color="#cd3700">)</font><br>
<span style="background-color: #000000"><font color="#3d3d3d">10 </font></span><font color="#cd3700"> </font><font color="#ffffff">set</font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><font color="#0055aa">.</font><span style="background-color: #000000"><font color="#7c7c7c">p</font></span><font color="#cd3700"> = </font><font color="#008080">GetLocalPlayer</font><font color="#cd3700">()</font><br>
<span style="background-color: #000000"><font color="#3d3d3d">11 </font></span><font color="#cd3700"> </font><font color="#ffffff">set</font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><font color="#0055aa">.</font><span style="background-color: #000000"><font color="#7c7c7c">i</font></span><font color="#cd3700"> = </font><font color="#008080">CreateItem</font><font color="#cd3700">(</font><font color="#ffff00"><b><i><u>'i000'</u></i></b></font><font color="#cd3700">, </font><font color="#0055aa">0</font><font color="#cd3700">, </font><font color="#0055aa">0</font><font color="#cd3700">)</font><br>
<span style="background-color: #000000"><font color="#3d3d3d">12 </font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d">13 </font></span><font color="#cd3700"> </font><font color="#ffffff">return</font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d">14 </font></span><font color="#cd3700"> </font><font color="#ffffff"><b>endmethod</b></font><br>
<span style="background-color: #000000"><font color="#3d3d3d">15 </font></span><font color="#cd3700"> </font><font color="#ffffff"><b>endstruct</b></font><br>
<span style="background-color: #000000"><font color="#3d3d3d">16 </font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d">17 </font></span><font color="#cd3700"> </font><font color="#ffffff">private</font><font color="#cd3700"> </font><font color="#ffffff"><b>function</b></font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">Ini</font></span><font color="#cd3700"> </font><font color="#ffffff">takes</font><font color="#cd3700"> </font><font color="#0055aa"><b>nothing</b></font><font color="#cd3700"> </font><font color="#ffffff">returns</font><font color="#cd3700"> </font><font color="#0055aa"><b>nothing</b></font><br>
<span style="background-color: #000000"><font color="#3d3d3d">18 </font></span><font color="#cd3700"> </font><font color="#ffffff">local</font><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">s</font></span><font color="#cd3700"> </font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><font color="#cd3700"> = </font><span style="background-color: #000000"><font color="#7c7c7c">s</font></span><font color="#0055aa">.</font><span style="background-color: #000000"><font color="#7c7c7c">create</font></span><font color="#cd3700">()</font><br>
<span style="background-color: #000000"><font color="#3d3d3d">19 </font></span><br>
<span style="background-color: #000000"><font color="#3d3d3d">20 </font></span><font color="#cd3700"> </font><font color="#ffffff">call</font><font color="#cd3700"> </font><font color="#008080">KillUnit</font><font color="#cd3700">(</font><span style="background-color: #000000"><font color="#7c7c7c">dat</font></span><font color="#0055aa">.</font><span style="background-color: #000000"><font color="#7c7c7c">u</font></span><font color="#cd3700">)</font><br>
<span style="background-color: #000000"><font color="#3d3d3d">21 </font></span><font color="#cd3700"> </font><font color="#ffffff"><b>endfunction</b></font><br>
<span style="background-color: #000000"><font color="#3d3d3d">22 </font></span><font color="#ffffff"><b>endscope</b></font><br>
<span style="background-color: #000000"><font color="#3d3d3d">23 </font></span><br>
</font></body>
</html>
How to Preview
Open your resident text editor (most commonly Notepad on Windows users' pc's).
Copy the code in the tags into it.
Save it as an html file (Replace .txt with .html and select All File Types then save)
Open it with your internet browser.
How to Install
Move _vimrc into PROGRAM FILES DIR\Vim\
Move jass.vim and cjass.vim and ir_black.vim into PROGRAM FLES DIR\Vim\vim72\colors\
NOTE: "vim72" is subject to change according to the installed version of Vim.
How to Edit
Don't like the current colors?
Then, edit it. It's fairly simple.
Go into ir_black.vim to change the colors and such.
Go into jass.vim or cjass.vim to change the words for highlighting.
Go into _vimrc to change stuff like fonts and start maximized.
_vimrc also contains the default syntax.
ir_black.vim will contain the colors for highlighting in the format:
Code:
hi Normal guifg=#7C7C7C guibg=black gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
Change "Normal" to the name of the color type (HiLink GROUP to COLORTYPE).
Change guifg to the Hex color of your choosing. 7C7C7C is grayish. guibg=black is the background color. gui=NONE is effects like Bold, Underline, and Italics. ctermfg=NONE I have no idea. ctermbg=NONE I also have no idea. cterm=NONE No idea. I've not worked with them as of yet.
jass.vim includes the words in this format:
Code:
syn keyword jassType agent
syn declares a group, keyword declares the type of group, jassType is the name and agent the word to look for.
At the bottom of jass.vim there is also:
Code:
HiLink jassType Type
This links jassType to the hi (hi in ir_black.vim) Type. If you add new groups, be sure to also remember to link them.
In _vimrc the only part you need to worry about is:
Code:
colorscheme ir_black
set guifont=Consolas:h9
set nu!
set ai!
syntax on
au GUIEnter * simalt ~x
colorscheme jass
colorscheme ir_black makes it the black theme.
set guifont=Consolas:h9 makes the font Consolas with size 9.
set nu! enables line numbers.
set ai! enables autoindent.
syntax on enables syntax highlighting.
au GUIEnter * simalt ~x maximizes the window.
colorscheme jass enables JASS text highlighting.
Edit as you wish.
Other User Created JASS Schemes
NOTE: You better damn be grateful if you use Vim. And there better be a damn large Vim user community who codes in JASS. I broke my fingers editing those like 4000 lines. And I still have many more lines in Blizzard.j and common.ai to work through.