From 048306b9d8b10eecd4db316545be7ee63c071622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E4=BA=A8=E4=BC=9F?= <12071467+zou-hengwei@user.noreply.gitee.com> Date: Thu, 6 Jun 2024 05:52:15 +0000 Subject: [PATCH 1/2] 2244310211 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹亨伟 <12071467+zou-hengwei@user.noreply.gitee.com> --- .../20240606\347\254\224\350\256\260.md" | 187 ++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 "11 \351\202\271\344\272\250\344\274\237/20240606\347\254\224\350\256\260.md" diff --git "a/11 \351\202\271\344\272\250\344\274\237/20240606\347\254\224\350\256\260.md" "b/11 \351\202\271\344\272\250\344\274\237/20240606\347\254\224\350\256\260.md" new file mode 100644 index 0000000..74045f4 --- /dev/null +++ "b/11 \351\202\271\344\272\250\344\274\237/20240606\347\254\224\350\256\260.md" @@ -0,0 +1,187 @@ +vi 编辑器有几种模式? + +``` +三种,一般模式,编辑模式,命令行模式 +``` + +1. 如何进入 vi 编辑器的插入模式 + + ``` + i 光标前面插入 + a 光标后面插入 + o 光标后下一行插入 + ``` + +2. 如何进入 vi 编辑器的可视化模式 + + ``` + v 或者 V 或者 ctrl v + ``` + +3. 在 vi 编辑器中如何复制一行 + + ``` + 按yy复制光标当前行 + p粘贴到下一行 + ``` + +4. 在 vi 编辑器中如何进行粘贴 + + ``` + 按P粘贴 + ``` + +5. 如何删除从 3 行到 15 行的所有数据 + + ``` + 输入 :3,15d + ``` + +6. vim练习: + + - 光标移动练习,命令模式下: + + - 单位级 h j k l + - 单词级 w e b + - 块级 gg G 0 ^ $ H M L ngg nj nk + + 把下列句子按照第一句的正确顺序修改好并把多余的空行删除 + + ``` + g/^$/d //删除空行 + ``` + + ``` + this is a simple easy vim tutorial + + tutorial simple a easy this vim is + is this tutorial vim simple a easy + + + tutorial vim this is a easy simple + tutorial easy vim simple a this is + simple a vim easy tutorial is this + + tutorial is easy vim a simple this + + + vim simple this tutorial a easy is + a vim tutorial simple easy is this + + + easy a simple vim is tutorial this + vim tutorial is a easy simple this + a this vim tutorial is easy simple + this tutorial simple easy a is vim + + + easy tutorial this simple a is vim + a tutorial easy is this simple vim + + a tutorial vim is easy this simple + simple this easy is vim tutorial a + + this tutorial is a easy simple vim + vim is tutorial simple this easy a + + vim is simple this tutorial easy a + easy a simple is vim this tutorial + vim is tutorial simple a easy this + this vim is tutorial simple easy a + ``` + + 先敲出以下代码,然后修正以下代码中的错误单词、重复单词、错误格式、多余行,修改函数名为 typing 并为定时器添加 300 毫秒延迟 + + ``` + const bbb = () => { + // this is is a description + // + // another descriptttion + const timer = setTimeout(( ) => { + console.log(that) alert('cool!') + // awosome man ! + }) + } + ``` + + 尝试在下面的文本中进行复制粘贴练习 + + ``` + 删除这一行 + dd + 粘贴到这一行下面 + p + 剪切 ABC 并把它粘贴到 XYZ 前面,使这部分内容看起来像 + 剪切 并把它粘贴到 ABC XYZ 前面。 + daw + p + ``` + + 尝试修改下列文本的大小写 + + ``` + Change this line to UPPERCASE, THEN TO lowercase. + 大写:光标移动到要修改的单词上,按下 gU 键将单词变为大写。 + 小写:光标移动到要修改的单词上,按下 gu 键将单词变为小写。 + ``` + + 按下面的说明进行操作 + + ``` + 按 dd 删除本行 + 按 . 重复删除操作 + 2. 再删除两行 + 这行也没了 + p 把刚才删掉的粘回来 + 3. 又多出 6 行 + ``` + + 左缩进、右缩进练习 + + ``` + 在这一行上依次按 3>>,<< 和 >添加缩行 +<<减少缩行 +,重复上次命令 + +常规查找 /str n查找下一个、N查找下一个 +单词快速匹配 *向前查找光标所在单词、#向后查找光标所在单词 +``` \ No newline at end of file -- Gitee From 6f87c85d90ffc9e515917014c99bf9075d781878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E4=BA=A8=E4=BC=9F?= <12071467+zou-hengwei@user.noreply.gitee.com> Date: Tue, 11 Jun 2024 15:59:24 +0000 Subject: [PATCH 2/2] 2244310211 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹亨伟 <12071467+zou-hengwei@user.noreply.gitee.com> --- ...350\243\205SSL\350\257\201\344\271\246.md" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "11 \351\202\271\344\272\250\344\274\237/\345\256\211\350\243\205SSL\350\257\201\344\271\246.md" diff --git "a/11 \351\202\271\344\272\250\344\274\237/\345\256\211\350\243\205SSL\350\257\201\344\271\246.md" "b/11 \351\202\271\344\272\250\344\274\237/\345\256\211\350\243\205SSL\350\257\201\344\271\246.md" new file mode 100644 index 0000000..4f8930e --- /dev/null +++ "b/11 \351\202\271\344\272\250\344\274\237/\345\256\211\350\243\205SSL\350\257\201\344\271\246.md" @@ -0,0 +1,24 @@ +## 作业安装SSL证书 + +第一步华为云购买SSL证书 + +申请SSL + +DNS验证 + +验证完成 + +下载证书 + +安装证书 + +创建目录cert + +并且将“server.key”(私钥) + +“server.crt”(证书) + +复制到“cert”目录下 + +报错。。。。。 + -- Gitee