https://github.com/jiagengchang/codeforces
Solution dump for around 100 problems on codeforces + vim text editor and cygwin terminal configurations.
https://github.com/jiagengchang/codeforces
codeforces codeforces-solutions codeforces-solutions-cpp competitive-programming
Last synced: about 2 months ago
JSON representation
Solution dump for around 100 problems on codeforces + vim text editor and cygwin terminal configurations.
- Host: GitHub
- URL: https://github.com/jiagengchang/codeforces
- Owner: JiaGengChang
- Created: 2022-02-16T08:36:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-25T17:48:32.000Z (about 4 years ago)
- Last Synced: 2025-01-16T10:32:32.926Z (over 1 year ago)
- Topics: codeforces, codeforces-solutions, codeforces-solutions-cpp, competitive-programming
- Language: C++
- Homepage:
- Size: 5.04 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codeforces solution bank
A solution bank for division 2 problems on codeforces, and dotfiles for the text editor and terminal I use.
This repo is mainly to help sync my work across machines.
## Horitonztal mode
Opened by entering `vs` from command line. Also showing NERDtree vim plugin.

## Vertical mode
Suitable for viewing side by side with problem statement. Opened by entering `vv` from command line.

## Cygwin Setup (for windows users only)
Install cygwin (https://cygwin.com/install.html) and select the following packages to install:
```
gcc-core
gcc-g++
gdb
git
make
vim
```
This is necessary for editing, compiling and running c++ code. Other packages like ```tree``` and ```python39``` are recommended.
## Terminal setup
Append the contentes of my dotfiles into yours.
Alternatively, create a symbolic link of the provided dotfiles (```.bashrc, .minttyrc, .vimrc```) into your ```$HOME``` directory.
```
ln -sr codeforces/.vim $HOME/.vim
ln -s codeforces/.vimrc $HOME/.vimrc
ln -s codeforces/.vimrc $HOME/.bashrc
ln -s codeforces/.vimrc $HOME/.minttyrc
```
Reopen terminal and commmands such as ```ebrc```, ```evrc``` to edit ```.bashrc``` and ```.vimrc``` should work.
## Vim setup
Despite the untradeable snappiness of terminal vim, the default looks that ships off with cygwin with are terrible. I used plugins to add some life to this.
Follow the instructions on https://github.com/junegunn/vim-plug to install the minimalist plugin manager.
This allows plugins listed inside my ```.vimrc``` to work, including plugins for the monokai theme, coloured status bar, and snippets.