03 2021 档案

VIM 字符串的数量 :%s/yes//gn
摘要::%s/yes//gn 阅读全文

posted @ 2021-03-31 13:50 liujx2019 阅读(210) 评论(0) 推荐(0)

How can i install ctags in centos 6.4
摘要:https://stackoverflow.com/questions/17120818/how-can-i-install-ctags-in-centos-6-4 by evan To install ctags in centos: 1) Find the package you want to 阅读全文

posted @ 2021-03-29 18:11 liujx2019 阅读(71) 评论(0) 推荐(0)

[转载] Ubuntu Vim powerline 插件
摘要:Ubuntu下安装powerline插件 孤单的演讲家 https://www.jianshu.com/p/ed0286eb54e8 2017.01.10 17:54:27字数 375阅读 2,676 一直喜欢powerline插件所带来的vim和Terminal效果。今天上午不想写专利,就抽出空闲 阅读全文

posted @ 2021-03-29 10:10 liujx2019 阅读(99) 评论(0) 推荐(0)

Vim 相关网页
摘要:https://vimjc.com/vim-powerline.html https://zhuanlan.zhihu.com/p/92121238 https://zhuanlan.zhihu.com/p/68111471 https://zhuanlan.zhihu.com/p/95032795 阅读全文

posted @ 2021-03-26 10:03 liujx2019 阅读(54) 评论(0) 推荐(0)

[转载] vim技巧:设置空格和Tab字符可见
摘要:vim技巧:设置空格和Tab字符可见,并自定义显示的字符颜色 霜鱼片发布于 2019-11-25 使用 Windows 下的一些 IDE(例如 Source Insight)查看代码时,可以设置空格和Tab字符可见。本篇文章介绍在 vim 中如何进行这个设置,并自定义显示的字符颜色。具体包括下面的内 阅读全文

posted @ 2021-03-25 17:44 liujx2019 阅读(2766) 评论(0) 推荐(0)

Don't trust cplusplus.com, it's crap. If any, go to cppreference.com.
摘要:123 阅读全文

posted @ 2021-03-16 10:07 liujx2019 阅读(44) 评论(0) 推荐(0)

Vim yank only 50 lines
摘要:https://vim.fandom.com/wiki/Copy,_cut_and_paste 阅读全文

posted @ 2021-03-11 17:18 liujx2019 阅读(44) 评论(0) 推荐(0)

按进程名终止进程
摘要:按进程名终止进程 #!/bin/bash echo "Terminate process(es) has " $1 " in name." echo "Self pid " $$ echo "Self name " $0 pids=$(ps -ef | grep $1 | grep -v grep 阅读全文

posted @ 2021-03-11 10:23 liujx2019 阅读(112) 评论(0) 推荐(0)

Shell 脚本 Tips
摘要:数组 filepath="everything mobaxterm gems" arr=($filepath) 打印某个元素 judgefile=${arr[0]} 打印全部元素 echo ${arr[@]} 循环打印每个元素 for x in ${arr[@]}; do echo $x done 阅读全文

posted @ 2021-03-10 18:51 liujx2019 阅读(69) 评论(0) 推荐(0)

Bash 脚本 逐行处理文本文件的内容
摘要:while read -r line; do echo "$line" done < /path/to/file.txt https://unix.stackexchange.com/questions/58040/what-is-the-fastest-way-to-process-line-by 阅读全文

posted @ 2021-03-10 14:31 liujx2019 阅读(207) 评论(0) 推荐(0)

Bash 脚本 从路径分离出文件夹和文件名
摘要:bash to get file name fspec="/exp/home1/abc.txt" filename="${fspec##*/}" # get filename dirname="${fspec%/*}" # get directory/path name other ways awk 阅读全文

posted @ 2021-03-10 14:25 liujx2019 阅读(316) 评论(0) 推荐(0)

Linux 跨平台编译调试
摘要:把修改过的代码发送到编译的机器 #!/bin/bash if [ $# -lt 1 ] then echo "Input the destination such as root@10.4.10.78:~/src/" exit fi file_list="file_list" update_scri 阅读全文

posted @ 2021-03-10 13:56 liujx2019 阅读(121) 评论(0) 推荐(0)

tr与sed命令:将换行符替换为空格
摘要:处理文本时需要将换行符替换为空格,若使用sed命令会比较麻烦,而使用tr命令非常方便。 cat country.txt | sed ':label;N;s/\n/ /;b label' cat country.txt | tr "\n" " " 两个命令输出一致,但是sed命令的输出结尾有换行符,而 阅读全文

posted @ 2021-03-10 13:37 liujx2019 阅读(2450) 评论(0) 推荐(0)

SpaceVim 鼠标无法复制
摘要:Step 1. 添加自定义启动函数 如何增加自定义快捷键? 使用 Toml 作为默认配置文件后,无法在配置文件里面直接添加 Vim 快捷键, 这点让很多用户感到困惑。实际上,SpaceVim 支持指定载入配置时需要调用的函数。 比如,我需要加入这样一个快捷键,使用 <Leader> w 来保存当前文 阅读全文

posted @ 2021-03-08 10:04 liujx2019 阅读(523) 评论(0) 推荐(0)

SpaceVim Tips
摘要:The default configuration file of SpaceVim is ~/.SpaceVim.d/init.toml 可用模块 = Available Layershttps://spacevim.org/layers/cscope/ 阅读全文

posted @ 2021-03-05 09:24 liujx2019 阅读(62) 评论(0) 推荐(0)

c语言结构体中的冒号的用法
摘要:简单来说就是这个变量占几位。 结构体中常见的冒号的用法是表示位域。 有些信息在存储时,并不需要占用一个完整的字节, 而只需占几个或一个二进制位。例如在存放一个开关量时,只有0和1 两种状态, 用一位二进位即可。为了节省存储空间,并使处理简便,C语言又提供了一种数据结构,称为“位域”或“位段”。所谓“ 阅读全文

posted @ 2021-03-03 10:57 liujx2019 阅读(1926) 评论(0) 推荐(1)

MSB LSB 大端 小端
摘要:最高有效位(MSB) 指二进制中最高值的比特。在16比特的数字音频中,其第1个比特便对16bit的字的数值有最大的影响。例如,在十进制的15,389这一数字中,相当于万数那1行(1)的数字便对数值的影响最大。比较与之相反的“最低有效位”(LSB)。 汇编中,比如8位2进制数10000001,其中第一 阅读全文

posted @ 2021-03-03 10:36 liujx2019 阅读(525) 评论(0) 推荐(0)

Ubuntu Zip
摘要:zip命令zip -r myfile.zip test/将test目录下打包成myfile.zip。运行实例:image.pngunzip命令unzip myfile.zip将myfile.zip.解压到当前目录下。运行实例:image.png扩展删除压缩包内的文件$ zip -d myfile.z 阅读全文

posted @ 2021-03-01 11:24 liujx2019 阅读(176) 评论(0) 推荐(0)

导航