使用配置

  1. 打卡设置 > 键盘
  2. 向下滚动点击查看及自定义快捷键
  3. 向下滚动点击自定义快捷键
  4. 点击添加快捷键
  • 终端快捷键
    • 名称:自定义即可。我这里填terminal
    • 命令: gnome-terminal
    • 快捷键: 点击添加快捷键后,键盘按自己想要的快捷键。我这里是 win+T。不区分大小写。

删除Debian自带游戏

1
2
3
4
# 可能会出现 某某进程锁
sudo apt purge gnome-2048 aisleriot atomix gnome-chess five-or-more hitori iagno gnome-klotski lightsoff gnome-mahjongg gnome-mines gnome-nibbles quadrapassel four-in-a-row gnome-robots gnome-sudoku swell-foop tali gnome-taquin gnome-tetravex -y & sudo apt autoremove -y

sudo reboot

软件源

debian 系统会读取 /etc/apt/sources.list 文件及
/etc/apt/sources.list.d/ 目录下的文件。

debian12 阿里云

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib

deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib

deb https://mirrors.aliyun.com/debian-security/ bookworm-security main

deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main

deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib

deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib

deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib

deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib

vim

下载 vim

1
:~$ sudo apt install -y vim

解决 vim 鼠标右键为可视模式

1
2
3
4
5
6
7
8
9
# 查看 vim 运行目录
:~$ sudo vim
:echo $VIMRUNTIME
/usr/share/vim/vim90

:~$ sudo vim /usr/share/vim/vim90/defaults.vim
:/mouse=a # 查找 mouse=a
修改为 mouse=""
保存退出

根据习惯配置 vim

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
:~$ sudo vim /etc/vim/vimrc
---output--
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif

推荐把配置写在`/etc/vim/vimrc.local`文件中

:~$ sudo vim /etc/vim/vimrc.local
set number # 显示行号
set autoindent # 自动缩进
set tabstop=4 # 缩进4个空格
set expandtab # 使用空格代替tab
set cursorcolumn # 显示光标所在列
set cursorline # 显示光标所在行