An open API service indexing awesome lists of open source software.

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.

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.