配置
vim + bash + gdb
cmd
#Your computer
cd /bin
sudo touch ga gb gc
sudo chmod a+x ga gb gc
#Contest
mkdir cmd
cd cmd
touch ga gb gc
chmod a+x ga gb gc
PATH=$PATH:~/cmd
ga
#!/bin/bash
g++ $1.cpp -o $1 -std=c++14 -O2 -Wall;
gb
#!/bin/bash
g++ $1.cpp -o $1 -std=c++14 -Wall -g;gdb $1
~/.bashrc:
ulimit -s 1024000
if [ $SHLVL = 1 ] ; then
tmux
fi
if [ $(tmux list-panes | wc -l) = 1 ] ; then
tmux split-window -h
fi
if [ $(tmux list-panes | wc -l) = 2 ] ; then
tmux resize-pane -L 10
fi
if [ $(pwd) = ~ ] ; then cd larsr; fi
PATH=$PATH:~/cmd
# cat ~/checklist
~/.vimrc:
colorscheme habamax
set number
set hls
set incsearch
set autoindent
set smartindent
filetype indent on
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
# Install plug&airline
# call plug#begin('~/.vim/plugged')
# Plug 'https://gitcode.com/gh_mirrors/vi/vim-airline'
# Plug 'https://gitcode.com/gh_mirrors/vi/vim-airline-themes'
# call plug#end()
# let g:airline_theme='angr'
#
set so=999
checklist:
LARSR's CHECKLIST
1.看错题
2.多测清空
3.corner case
4.树链剖分一定要注意是写 dfs 序还是编号
~/.tmux.conf:
set -g default-terminal "screen-256color"
QQ 安装,下载 x86 deb 文件,使用 dpkg -i。

浙公网安备 33010602011771号