soicode.vim : Soicode plugin for vim
script karma |
Rating 4/1,
Downloaded by 225 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Kimi Löffel |
|
script type |
utility |
|
description |
# soicode.vim
My implementation of the soicode
[vscode plugin](https://marketplace.visualstudio.com/items?itemName=swissolyinfo.soicode)
made for the [Swiss Olympiad in Informatics](https://soi.ch).
inside of vim.
## Features
This plugin only activates if you are in a working directory which contains
the word `soi`.
- You can Create a `.stoml` file with the `:SOICreateStoml` command.
It automatically pastes your clipboard to this file,
so you have to copy the `.stoml` file first.
The created `.stoml` file has the same name
as the previous file without the file ending.
- You can run one sample from the `.stoml` file
with the `:SOIRunOneSample <sample>` command.
The cpp file will be compiled and run with the input
from the `<sample>.input` value from the `.stoml` file.
After that the output of the program will be shown in a new tab.
- You can run all samples from the `.stoml` file
with the `SOI:RunAllSamples` command.
The cpp file will be compiled and run with the input
of all the declared samples from the `.stoml` file.
After that the output of the program for each sample will be shown in a new tab.
- You can add a template into the current file with the `:ISOInsertTemplate` command.
If you set the `g:soicode_auto_insert_template` option to 1 in your config file
the template will automatically be inserted if you open a new cpp file in a directory
that contains the word `soi`
### Todo
- [x] Create a `.stoml` file with the given in- and outputs.
- [x] Run one sample from the `.stoml` file.
- [x] Run all samples from the `.stoml` file.
- [ ] Run with manual input
- [ ] Debug code
- [x] Insert a template
|
|
install details |
Use your package manager or clone it manually from github https://github.com/MrSpoony/soicode.vim
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.144.252.203
|