VimCoder.jar : The TopCoder Arena editor plugin with Vim integration.
| script karma
Downloaded by 4278
Comments, bugs, improvements
script versions (upload new version)
|The TopCoder Arena is a Java applet providing access to free programming
challenges and competitions. The applet contains a built-in editor for
solving the algorithm problems, but coding in Vim is much easier. This is
a plugin for the arena providing support for using Vim as your editor. You
can learn about TopCoder at their site: http://www.topcoder.com/tc
Some features of this plugin:
- Use Vim to edit your TC Arena problems.
- Keeps track of your code files locally so you'll always have a copy.
- Works with any language supported by TC.
- Downloads and stores a copy of the problem statement with your code for
- Support for templates (default templates provided only for C++ and Java).
- Test-case "drivers" can be generated locally with the example test-case
data (currently C++ only).
You need to have client/server support compiled into Vim. This is usually
the case. You also need to have a recent Java runtime implementation in
order to run the arena applet and editor plugin.
You can also use Vim's :make command to build the C++ test cases, but
of course you'll need the make utility and a C++ compiler.
A more detailed description of this plugin is available on the project page,
along with the source code:
This software is not endorsed by TopCoder and is provided as-is.
|1. Launch the TC Arena applet.
2. Click the "Options" menu and select "Editor" to show the editor preferences.
3. Click the "Add" button to bring up a new window for adding plugins.
4. In the "Name" field, type "Vim" or whatever you want. This is used for identifying the plugin.
5. In the "EntryPoint" field, type "com.dogcows.VimCoder" without the quotes.
6. For the "ClassPath" field, click on "Browse" and locate the VimCoder jar file you downloaded.
7. Click "OK" to close the plugin adding window.
8. Click "Save" in the editor preferences window.
You should now be able select "Vim" (or whatever you entered in the first field) in the problem statement window to use Vim!
Click on the package to download.
ip used for rating: 126.96.36.199
||* Bugfix: Do not insert C++-style comments since that doesn't work for some languages (e.g. Python).
* Improved documentation
* The default C++ driver now generates TAP (Test Anything Protocol) so that a compatible test harness may be used.
* Added an optional alternative directory structure based on contest name and point values to make browsing easier.
* Better Windows support for default C++ Makefile and driver program.
* Improved documentation and other small tweaks.
* Prevent a rare compile error in the C++ driver.
* Works with JRE 1.6 (thanks Sam Lidder and Aaron Michelony).
* Build the jar with jar(1) instead of zip(1). That makes more sense...
* Cleaned up the documentation somewhat.
||This version includes bug-fixes for the C++ driver:
* Test floating point values with TopCoder's allowed error.
* Avoid an infinite loop with recent versions of libstdc++.
Thanks to Sam Lidder for the patches.
* Makefile changes are no longer clobbered when re-opening a problem (thanks jiakai for reporting).
* multi-word types (i.e. unsigned long in C++) are no longer smooshed together.
* Waiting on the Vim server process increased to 2.5 seconds in case Vim loads slowly (i.e. from NFS).
* Default C++ Makefile template now uses the -ggdb g++ flag for more expressive debugging information.
|| * Now uses correct line-endings by default on Windows.
* Other cosmetic bugfixes.
* User-customizable templates (add them to the "storage" directory).
* Default Vim command for Windows now C:\WINDOWS\gvim.bat; if you don't have this executable, you may need to tell VimCoder how to invoke Vim.
* Documentation now available: https://www.dogcows.com/vimcoder/wiki/Manual