Skip to content

Solution dump for around 100 problems on codeforces + vim text editor and cygwin terminal configurations.

Notifications You must be signed in to change notification settings

JiaGengChang/codeforces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Solution dump for around 100 problems on codeforces + vim text editor and cygwin terminal configurations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published