2023/10/22大约 204 分钟
概述如何学习 vim,Vimscript 语言和 vimrc 配置选项
2023/10/22大约 5 分钟
vim -o
vim -O
ctrl + z
fg
vim +%s/pancake/bagel/g hello.txt
vim -c %s/pancake/bagel/g hello.txt
2023/10/22大约 4 分钟
介绍缓冲区、窗口、Tab的使用,说实话,我需求没这么大,更多的是了解单文件的 Vim 命令
2023/10/22大约 6 分钟
介绍快速打开、搜索文件的 :find,:vim,:grep,使用 vim 支持现代编辑器中多文件文本替换功能。
2023/10/22大约 10 分钟
operators + motions 是 vim 语法的核心
y Yank text (copy)
d Delete text and save to register
c Delete text, save to register, and start insert mode
h Left
j Down
k Up
l Right
w Move forward to the beginning of the next word
} Jump to the next paragraph
$ Go to the end of the line
支持频次:
- To yank two characters to the left: `y2h`.
- To delete the next two words: `d2w`.
- To change the next two lines: `c2j`.
支持文本对象:
- To delete the text inside the parentheses without deleting the parentheses: `di(`.
- To delete the parentheses and the text inside: `da(`.
Below is a list of common text objects:
w A word
p A paragraph
s A sentence
( or ) A pair of ( )
{ or } A pair of { }
[ or ] A pair of [ ]
< or > A pair of < >
t XML tags
" A pair of " "
' A Pair of ' '
` A pair of ` `
过滤运算符:
!}column -t -s "|"
2023/10/22大约 7 分钟
