Quick start
From nothing to a submitted solution in about five minutes.
1. Install#
curl -fsSL https://raw.githubusercontent.com/moneytosms/verd/main/install.sh | sh
verd --version
Other ways (go install, tarballs) are on the Install page. You also need a compiler or interpreter for the language you solve in (g++, gcc or python3 by default) and, for editing, nvim (any editor works).
2. Set up#
verd init # writes config.toml, Templates and the snippet library
verd doctor # checks compilers, editor and terminal
verd init asks for your Codeforces handle, the only required setting. To skip the questions:
verd init --no-setup
verd config set handle tourist
3. Open verd#
verd
The first start downloads the problem list, then works offline from its cache. Five tabs sit along the top, switched with 1 to 5:
| Tab | What it is |
|---|---|
1 Problems |
every problem, with search, filters and solved marks |
2 Contests |
contests (/ to search), and timed sessions |
3 Stats |
your rating, topics and streaks |
4 Picker |
a random unsolved problem in your rating band |
5 Settings |
every option, live |
Lost? Press ctrl+k. The command palette fuzzy-runs any action or setting, so you can find a feature without knowing its key. Press ? on any screen for its keys. Z toggles zen mode (just the statement and tests).
4. Solve one problem#
- On Problems press
/, typewater, pressenterto keep the search, thenenteragain to open a problem. - Read the statement on the left. The right side lists the sample tests.
- Press
e. verd createsmain.cppfrom your Template and opens Neovim next to verd. - Write the solution and save. With
autoteston (default) the tests run by themselves; or presst. - All
AC? Presss. verd copies the solution, opens the submit page and shows the verdict as it arrives.
~/verd/1900/A/
├── main.cpp your solution
├── tests/ sample-N and custom-N .in/.ans files
└── notes.md your notes (N in the Problem view)
What next#
- Finding problems: search, filters, the Picker and your stats.
- Read, edit and test: the everyday loop in detail.
- Stress testing: when a solution passes the samples and still fails.
- Customize: themes, shortcuts, layout.