跳到正文

个人记录

配置

larsr约 2 分钟
原文

这是 2026年4月20日 存档的第 2 版,不是当前版本。查看当前版本

文章信息与版本

文章信息

发布
2024年12月23日
收录
2025年12月12日
更新
2026年11月20日
篇幅
约 2 分钟
获赞
1

版本

  1. v3当前
  2. v2
  3. v1

vim + bash + gdb

cmd

Bash
#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

Bash
#!/bin/bash
g++ $1.cpp -o $1 -std=c++14 -O2 -Wall;

gb

Bash
#!/bin/bash
g++ $1.cpp -o $1 -std=c++14 -Wall -g;gdb $1

~/.bashrc:

Bash
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
cd larsr
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。