没有合适的资源?快使用搜索试试~ 我知道了~
bash-vim-editing-cheat-sheet
需积分: 10 27 下载量 11 浏览量
2014-03-27
23:15:11
上传
评论 1
收藏 78KB PDF 举报
温馨提示
试读
2页
对于习惯vim编辑的linux用户,在~/.bashrc文件中添加set -o vi,设置bash vim命令模式,可以加快方便输入
资源推荐
资源详情
资源评论
Readline VI Editing Mode Cheat Sheet
Default Keyboard Shortcuts for Bash
Shortcut Description
Switching to Command Mode:
ESC Switch to command 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<movement command> Change text of a movement command <movement command> (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 leaving command mode).
R Replaces characters under the cursor.
v Edit (and execute) the current command in a text editor (an editor in $VISUAL and
$EDITOR variables or vi).
Basic Movement Commands (in command 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 Finding Commands (these are also Movement Commands):
fc Move right to the next occurance of c.
Fc Move left to the previous occurance of c.
tc Move right to the next occurance of c, then one char backward.
Tc Move left to the previous occurance of c, then one char forward.
; Redo the last character finding command.
, Redo the last character finding command in opposite direction.
| Move to the n-th column (you may specify the argument n by typing it on number
keys, for example, 20|).
A cheat sheet by Peteris Krumins (peter@catonmat.net), 2008.
http://www.catonmat.net - good coders code, great reuse
Released under GNU Free Document License.
资源评论
hjx5200
- 粉丝: 93
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功