1 / 2
文档名称:

bash-vi-editing-mode-cheat-sheet.pdf

格式:pdf   页数:2
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

bash-vi-editing-mode-cheat-sheet.pdf

上传人:紫岑旖旎 2014/3/19 文件大小:0 KB

下载得到文件列表

bash-vi-editing-mode-cheat-sheet.pdf

文档介绍

文档介绍:Readline VI Editing Mode Cheat Sheet
Default Keyboard Shortcuts for Bash
Shortcut Description
Switching mand Mode:
ESC Switch mand mode.
Commands for Entering Input mode:
i Insert before cursor.
a Insert after cursor.
I Insert at the beginning of line.
A Insert at the end of line.
c<mand> Change text of a mand <mand> (see below).
C Change text to the end of line (equivalent to c$).
cc or S Change current line (equivalent to 0c$).
s Delete a single character under the cursor and enter input mode (equivalent to
c[SPACE]) .
r Replaces a single character under the cursor (without mand mode).
R Replaces characters under the cursor.
v Edit (and execute) the mand in a text editor (an editor in $VISUAL and
$EDITOR variables or vi).
Basic mands (mand mode):
l or SPACE Move one character right.
h Move one character left.
w Move one word or token right.
b Move one word or token left.
W Move one non-blank word right.
B Move one non-blank word left.
e Move to the end of the current word.
E Move to the end of the current non-blank word.
0 Move to the beginning of line.
ˆ Move to the first non-blank character of line.
$ Move to the end of line.
% Move to the corresponding opening/closing bracket (()’s, []’s and {}’s).
Character mands (these are also mands):
fc Move right to the next occurance of c.
Fc Move left to the previous