delete line how vim
Centos7下vim最新版本安装
一直以来用的都是vim,因为之前都是系统自带的vim没有研究过怎么自己安装,今天趁着刚装完新系统,顺便装下vim。 vim有两种安装方法: 一、yum安装 安装命令: sudo yum install -y vim centos下安装软件最简单的方法了,能自动解决依赖问题。首推该方法,缺点是大部分软 ......
Git和VIM常用命令速记
查看主机名称: git remote show 手动建立追踪关系: git branch --set-upstream master origin/next //指定master分支追踪origin/next分支 重新绑定追踪关系: git remote remove origin //如果本地代码 ......
Linux-文本编辑vim
vim 使用流程 vim 默认机器是不安装的,需要手动安装这个工具命令 yum install vim -y # 通过yum软件管理工具进行安装 当 vim 打开不存在的文件的时候,默认会创建文件 语法 1. vim 文件名 2. 输入字母 i ,进入编辑模式,代表insert 输入字母 o ,在光 ......
How to execute a shell script in the .profiles file All In One
How to execute a shell script in the .profiles file All In One
......
UVA10943 How do you add?
两个数 n,m,求 用 m 个 [0,n] 的整数相加使其和为 n 的方案数。 #include <iostream> #include <cstring> #include <sstream> using namespace std; const int N =102; const int mod ......
How to use Linux shell command filter the IP address All In One
How to use Linux shell command filter the IP address All In One
如何使用 Linux shell 命令过滤 IP 地址
......
How to use the Raspberry Pi to study the Linux kernel source code All In One
How to use the Raspberry Pi to study the Linux kernel source code All In One
如何利用树莓派来研究 Linux 内核源码 All In One
在 Linux 系统中,一切皆文件!
......
储存数据至mysql数据库时出现 (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '),'自营店')' at line 1")报错该怎么解决?
在msyql数据库中存储数据时,程序出现了如下报错: 打印存储的数据类型发现数据类型有错误,将数据转为str类型就可以了。。。 解决思路: 在初入数据库学习时,出现这个报错还是有些懵的,于是改了捕获异常,发现存储数据函数有问题。从报错中可以看出是有跟'自营店'类似的数据有关系的,于是,查看了自己的数 ......
Udhcpc.user script documentation and how to hotplug for DHCP events
Udhcpc.user script documentation and how to hotplug for DHCP events https://forum.openwrt.org/t/udhcpc-user-script-documentation-and-how-to-hotplug-fo ......
VIM 命令
vim 默认模式: gg: 首行 GG:末行 ngg:n 是数字 表示光标移到第n行 j:向上(注意小写) k:向下(注意小写) h:向左(注意小写) l:向右(L的小写) yy或者YY:拷贝当前行 nyy:n 是数字 表示复制光标开始向后的n行(注意只能小写) p 或者P:粘贴 dd或者 DD : ......
how to use cURL with a variable in the URL string All In One
how to use cURL with a variable in the URL string All In One
如何在 cURL 的 URL 字符串中使用变量
系统变量
环境变量
shell 变量 ......
How to use SSH to access the Raspberry Pi without know the Wi-Fi IP address All In One
How to use SSH to access the Raspberry Pi without know the Wi-Fi IP address All In One
如何在不知道 Wi-Fi IP 地址的情况下使用 SSH 访问树莓派
没有显示器,不知道树莓派 IP 地址的情况下,如何通过 ... ......
2023-04-14 Fatal error: Call to a member function fetch_assoc() on a non-object in C:\wamp\www\work\user.php on line 860
问题:php报错。 业务场景:使用update语句去更新数据库字段。 原因:update接收值不正确。 原代码: $query = "UPDATE student SET date = now() WHERE id = $id"; $result = $mysqli->query($query2) ......
How to use command line find all users on Linux All In One
How to use command line find all users on Linux All In One
Linux 系统中一切皆文件, 就像 js 中一切皆对象一样
/etc/passwd
......
PAT 甲级 1014 Waiting in Line(30)
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ......
how to create one command line configuration tool with shell language on Linux All In One
how to create one command line configuration tool with shell language on Linux All In One
如何在 Linux 上用 shell 语言创建一个命令行配置工具
raspi-config
......
设置vim 显示行号
1、临时显示行号 只须按ESC键退出编辑内容模式,输入“:” ,再输入“set number”或者“set nu”后按回车键,就可以显示行号了。行号显示只是暂时的。退出vim后再次打开vim就不显示行号了。 🐖 取消显示行号:输入“:set nonu” 2、永久显示行号 如果想让vim永久显示行号 ......
如何去掉Linux vim文本中的^M
正常情况如果vim只是发现行尾有^M,那么直接使用dos2unix就可以了 dos2unix yourfile.txt 但是有些文本只有^M没有换行。这是因为一般换行都是"0x0d0x0a",0x0d是回车键,0x0a是换行。只有^M没有换行,是因为只有0x0d没有0x0a,这时可以用sed替换 s ......
springBoot启动 Error running Application. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.
1. 打开SpringBoot启动配置 2.选择shorten command line 3.apply保存就行了 ......
vim中使用鼠标右键插入时进入(insert)visual模式
某天使用vim插入外面复制的内容时,发现用右键点击后,并未将内容粘贴进去,而是进入了(insert)visual模式,查找了一番博客,可通过以下方式处理: 先shift+enter进入普通模式输入 set mouse-=a然后再i进入insert模式,就可以正常右键粘贴了 ......
How to Calculate the size of archive log files each day
Calculate the size of archive log files each day SQL> SELECT TRUNC(COMPLETION_TIME) ARCHIVED_DATE, SUM(BLOCKS * BLOCK_SIZE) / 1024 / 1024 SIZE_IN_MB F ......
es 同步索引报错:ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]
es 同步索引报错:ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)] 原因: 网上有的解决方式是方法一,我试过,没有生效使用的是方法二 方法一 cur ......
how to use crontab to send an email on Linux All In One
how to use crontab to send an email on Linux All In One
......
Vim 模式 All In One
Vim 模式 All In One Vim 模式 normal mode 正常模式 visual mode 可视化模式 command mode 命令模式 insert mode 插入模式 i/ ~~eidt mode 编辑模式~~ select mode 选择模式 ex mode 扩展模式 Vim ......
How to Disable Suspend and Hibernation Modes In Linux
How to Disable Suspend and Hibernation Modes In Linux Disable Suspend and Hibernation in Linux sudo systemctl mask sleep.target suspend.target hiberna ......
Debian下解决vim不能安装问题
新安装的一个Debian系统,无法安装vim编辑器 找到问题是系统自带了一个依赖包vim-common。。。。。。 卸载这个依赖包 apt-get remove vim-common 重新安装vim apt-get install vim 成功解决 ......
how to use Vim delete one line All In One
how to use Vim delete one line All In One
在正常模式下(非编辑模式 i),光标选中所在行, 连续按两下d键,即可删除一整行 ✅
......
abc248_e K-colinear Line 题解
K-colinear Line 题意 平面直角坐标系上给出 $n$ 个点,第 $i$ 个点的坐标为 $(x_i, y_i)$。 请求出平面上有多少条直线穿过 $n$ 个点中的至少 $k$ 个点。如果有无数条这样的直线,输出 Infinity。 数据范围 $1 \leqslant K \leqslan ......
浅谈对属性描述符__get__、__set__、__delete__的理解
1、属性描述符的基础介绍 1.1 何为属性描述符? 属性描述符是一种Python语言中的特殊对象,用于定义和控制类属性的行为。属性描述符可以通过定义__get__、__set__、__delete__方法来控制属性的读取、赋值和删除操作。 通过使用属性描述符,可以实现对属性的访问控制、类型检查、计算 ......