Sublime Text 2 instead of IDE

I am learning C# and it liked me at first. More precisely, I really like it even now. But when I had to write real programs, not the case studies, the Visual Studio Express restrictions investigated. I've installed .NET 4, Nunit, SharpDevelop, met already installed Git... And then realized that I just cut yak.
I found the language that makes these tools unnecessary. Programming for me not a hobby, I hope to earn money this way, so I need tools for unit-tests and backups. However, I do not work for hire, so I do not need tools for team collaboration and I am not bound hand and foot by corporate standards. Git can be replaced with Cubby, everything else are exist in Cobra.
I do not want to use a IDE. I want to code in Sublime Text 2, especially because I already have experience developing in this style (in Python).
Is it possible scenario for Cobra? How to do it? I do not need almost anything beyond the standard capabilities of .NET. The only exception is a commercial library for OCR. I suspect that I will have to compile from the command line or batch file. It's not as scary because I'm not going to write a lot of programs. In the pop-culture of 1980s often met "singer of one hit". So, I want to be a programmer of one application.
By the way, this is my first attempt to write something in Cobra. I have not tried to compile it. The abundance of installations are tired me.
I found the language that makes these tools unnecessary. Programming for me not a hobby, I hope to earn money this way, so I need tools for unit-tests and backups. However, I do not work for hire, so I do not need tools for team collaboration and I am not bound hand and foot by corporate standards. Git can be replaced with Cubby, everything else are exist in Cobra.
I do not want to use a IDE. I want to code in Sublime Text 2, especially because I already have experience developing in this style (in Python).
Is it possible scenario for Cobra? How to do it? I do not need almost anything beyond the standard capabilities of .NET. The only exception is a commercial library for OCR. I suspect that I will have to compile from the command line or batch file. It's not as scary because I'm not going to write a lot of programs. In the pop-culture of 1980s often met "singer of one hit". So, I want to be a programmer of one application.

By the way, this is my first attempt to write something in Cobra. I have not tried to compile it. The abundance of installations are tired me.
"""
Virtual window is rectangular part of screen. For example, 32x32 pixels.
You can take a screenshot of such size by specifying a starting point.
"""
class VirtualWindow
var _window as Bitmap
var _gdi as Graphics
cue init(width as int, height as int)
assert width > 0 and width <= Screen.PrimaryScreen.WorkingArea.X
assert height > 0 and height <= Screen.PrimaryScreen.WorkingArea.Y
_window = Bitmap(width, height)
_gdi = Graphics.FromImage(_window)
def takeScreenshot(x as int, y as int)
assert x+width <= Screen.PrimaryScreen.WorkingArea.X
assert y+height <= Screen.PrimaryScreen.WorkingArea.Y
_gdi.CopyFromScreen(x, y, 0, 0, _window.Size)
return _window