上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页
摘要: 1. <Ctrl-A> 增大当前数字 2. <Ctrl-X> 减小当前数字 3. <Ctrl-G> 查看当前文件的文件路径 4. g<Ctrl-G> 查看文件当前光标的详细信息 5. K 在文档手册查找当前关键字, set keywordprg? 可以查看当前文件所使用的文档查看命令设置 6. ~ 阅读全文
posted @ 2022-01-26 12:02 箫笛 阅读(151) 评论(0) 推荐(0)
摘要: Sort file content from Vim as shown below. 1. :sort -- Sort in ascending order 2. :sort! -- Sort in descending order 3. :sort i -- Ignore case while s 阅读全文
posted @ 2022-01-24 10:38 箫笛 阅读(933) 评论(0) 推荐(0)
摘要: global 命令类似于 shell 命令的 sed,对当前文档执行特定的命令 1. :g/^$/d 删除所有的空行 2. :g/^\s*$/d 删除具有空白字符或空白行 3. :g/^$/,/./-j 将多个空白行合并为一个空白行 4. :g/pattern/d 根据搜索模式删除特定的行 5. : 阅读全文
posted @ 2022-01-21 10:39 箫笛 阅读(241) 评论(0) 推荐(0)
摘要: help: debug-scripts Debugging scripts *debug-scripts* Besides the obvious messages that you can add to your scripts to find out whatthey are doing, Vi 阅读全文
posted @ 2022-01-02 00:26 箫笛 阅读(246) 评论(0) 推荐(0)
摘要: $ type cd 【显示cd命令的实现】 // cd is a shell buit in $ type -a pwd 【显示pwd命令的所有实现】 // pwd is a shell built in // pwd is /bin/pwd 阅读全文
posted @ 2021-12-30 11:31 箫笛 阅读(100) 评论(0) 推荐(0)
摘要: 1. 查看命令历史及写入文件 $ history 最近用过的命令列表 $ history -a 将命令历史记录写入.bash_history 文件 2. 执行命令历史中的命令 $ !! 执行上一次执行过的命令 $ !2 执行历史命令编号为2的命令 阅读全文
posted @ 2021-12-30 11:23 箫笛 阅读(479) 评论(0) 推荐(0)
摘要: 执行一个命令使其在后台运行的方式有两种: 1. 在bash 命令后加 & tar -zcvf dist.tgz dist & (tar -zcvf dist.tgz dist; cp dist.tgz ../) & 2. 利用 coproc 命令, 此命令会产生一个新的shell进程来执行命令 co 阅读全文
posted @ 2021-12-29 12:24 箫笛 阅读(2953) 评论(0) 推荐(0)
摘要: 1. 强制退出程序 command + option + esc 阅读全文
posted @ 2021-12-11 08:25 箫笛 阅读(133) 评论(0) 推荐(0)
摘要: node.js - nrm npm源管理工具 1. 安装nrm npm install -g nrm 2. 基本使用 查看可用源地址 nrm ls npm https://registry.npmjs.org/ yarn https://registry.yarnpkg.com/ tencent h 阅读全文
posted @ 2021-12-10 15:59 箫笛 阅读(89) 评论(0) 推荐(0)
摘要: 1. <Uncaught Error: Minified react error #130 >: module not export . 阅读全文
posted @ 2021-12-08 15:44 箫笛 阅读(157) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页