FIX: command and vim .vimrc Tab to Space

This commit is contained in:
rangersly 2025-04-25 09:42:12 +08:00
parent 65e8fcadb8
commit e878686e46
8 changed files with 48 additions and 4 deletions

View File

@ -2,7 +2,7 @@
--- ---
## 目录 ## INDEX
- [文件操作](#文件操作) - [文件操作](#文件操作)
- [打包压缩](#打包压缩) - [打包压缩](#打包压缩)
@ -43,6 +43,10 @@
- [which](#which):查找命令 - [which](#which):查找命令
- [whoami](#whoami) - [whoami](#whoami)
- [uname](#uname):系统内核版本等信息 - [uname](#uname):系统内核版本等信息
- [objdump](../../program/tool/objdump)
- [INDEX](#INDEX)
--- ---
@ -54,6 +58,9 @@
- [tar](#tar) - [tar](#tar)
- [dd](#dd) - [dd](#dd)
- [INDEX](#INDEX)
--- ---
## 磁盘 ## 磁盘
@ -66,6 +73,9 @@
- [smartctl](#smartctl):查看smart参数 - [smartctl](#smartctl):查看smart参数
- [parted](#parted) - [parted](#parted)
- [INDEX](#INDEX)
--- ---
## 用户 ## 用户
@ -80,6 +90,9 @@
- [newgrp](#newgrp):切换有效用户组 - [newgrp](#newgrp):切换有效用户组
- [last](#last) : 查看用户登陆记录 - [last](#last) : 查看用户登陆记录
- [INDEX](#INDEX)
--- ---
## 进程 ## 进程
@ -96,6 +109,9 @@
- [jobs](#jobs) - [jobs](#jobs)
- [ulimit](#ulimit) - [ulimit](#ulimit)
- [INDEX](#INDEX)
--- ---
## 网络 ## 网络
@ -107,20 +123,30 @@
- [wget](#wget) - [wget](#wget)
- [NetworkManager](#networkmanager) - [NetworkManager](#networkmanager)
- [INDEX](#INDEX)
--- ---
## 系统 ## 系统
- [systemctl](#systemctl) - [systemctl](#systemctl)
- [perf](../../program/tool/perf.md)
- [dmidecode](#dmidecode) - [dmidecode](#dmidecode)
- [dpkg](#dpkg) - [dpkg](#dpkg)
- [apt](#apt) - [apt](#apt)
- [编解码工具](#编解码工具) - [编解码工具](#编解码工具)
- [INDEX](#INDEX)
--- ---
## 其他 ## 其他
- [INDEX](#INDEX)
--- ---
### pwd ### pwd

View File

@ -125,5 +125,4 @@ if ! shopt -oq posix; then
fi fi
# 终端启动时显示消息 # 终端启动时显示消息
echo -e "\e[1;34m$(date +'%A, %B %d %Y %H:%M:%S')\e[0m"
echo -e "\e[1;32mWelcome to My Linux, \e[1;35m$USER!\e[0m" echo -e "\e[1;32mWelcome to My Linux, \e[1;35m$USER!\e[0m"

View File

@ -0,0 +1,14 @@
# LIBRARY
---
## INDEX
- [C](#C)
- [CPP](#CPP)
- [SELF](#SELF)
- [offsetof](./self/offsetof.h)
- [string hash](./self/string_hash.c)
- [thread pool](./self/thread-pool.cpp)
---

View File

@ -1,6 +1,7 @@
objdump objdump
-f 显示文件头 -f 显示文件头
-h 显示段(section)信息 -h 显示段(section)信息
-x 文件头和信息
-d 反汇编可执行段 -d 反汇编可执行段
-D 反汇编所有 -D 反汇编所有
-t 显示符号表 -t 显示符号表

View File

@ -1,8 +1,6 @@
syntax on syntax on
set number "显示行号 set number "显示行号
"set rnu "相对行号 "set rnu "相对行号
set ts=4
set expandtab "tab to space
set autoindent "自动缩进 set autoindent "自动缩进
set encoding=utf-8 "使用utf-8字符编码 set encoding=utf-8 "使用utf-8字符编码
set fileencoding=utf-8 set fileencoding=utf-8
@ -16,6 +14,12 @@ set incsearch "搜索模式下,每输入一个字符,就跳到对应
set ignorecase "忽略搜索大小写 set ignorecase "忽略搜索大小写
set tags=./tags;,tags "表示从当前文件所在的目录开始查找 tags 文件,如果没有,则向上递归查找 set tags=./tags;,tags "表示从当前文件所在的目录开始查找 tags 文件,如果没有,则向上递归查找
"Tab and Space
set expandtab "tab to space
set ts=4
set softtabstop=4 " 编辑时退格键删除的空格数
set shiftwidth=4 " 自动缩进使用的空格数
"缓冲区操作 "缓冲区操作
nnoremap <space>b :buffers<cr>:b<space> nnoremap <space>b :buffers<cr>:b<space>
nnoremap <space>e :b#<cr> nnoremap <space>e :b#<cr>