美文网首页
vim grammar

vim grammar

作者: 一口亅 | 来源:发表于2021-05-05 10:39 被阅读0次

verb + noun

Nouns (Motions)

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

Verbs (Operators)

y Yank text (copy),你可以用p(光标后)或p(光标前)粘贴它。
d Delete text and save to register
c Delete text, save to register, and start insert mode
gU 大写

Verb And Noun

y$ 复制从当前位置到行末
dw 删除从当前位置到下一个单词开始
c} 从你当前的位置更改到当前段落的结尾

也可以加数字
y2h 向左拉两个字符

dd, yy, and cc perform deletion, yank, and change on the entire line.

More Nouns (Text Objects)

i + object Inner text object
a + object Outer text object、

di( 删除括号内的但不删除括号
da( 删除括号和里面的文本

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 ` `
:h text-objects

可组合性

Vim有一个过滤操作符(!),用于使用外部程序作为文本的过滤。

!}column -t -s "|"
!}column -t -s "|" | awk 'NR > 1 && /Ok/ {print $0}'
表格化并显示ok行

相关文章

  • Parser 2

    Ambiguous Grammar A grammar is ambiguous if it can derive...

  • 4 pitfalls in learning Enhlish

    1 Translation-Grammar method Less translation and grammar...

  • Context free grammar in Java

    BNF and context-free grammar What is a grammar ? A gramma...

  • ggplot 可视化 Part 1- swirl course

    Grammar of Graphic 图形语法 In brief, the grammar tells us th...

  • 主题分享:学习语法

    自现象级英语 Grammar: a must-learn Grammar is not fixed: there ...

  • Grammar

    名词复数 规则变化 ch sh x s 结尾的单词后面+es 以辅音+y结尾的单词变复数 y变i加es 必须是辅音...

  • Grammar

    <以下为个人学习归纳用,所选资料均来自网络。如有侵权请联系删除> 【关系代词和关系副词在用法上的区别】 1) Th...

  • Grammar

    str_format.py var.py expression.py if.py for.py while.py ...

  • Essential Grammar in use

    Grammar Vocabulary elementary raymond

  • grammar school

    文法学校(grammar school)诞生于古希腊时代。在英国的文法学校始创于12-13世纪,以古典课程为主。随...

网友评论

      本文标题:vim grammar

      本文链接:https://www.haomeiwen.com/subject/ofmrdltx.html