linux 下载 vi editor,linux下VI编辑器命令大全(超级完整版)(Linux lower VI editor command full (super full version)).d...

linux下VI编辑器命令大全(超级完整版)(Linux lower VI editor command full (super full version))

linux下VI编辑器命令大全(超级完整版)(Linux lower VI editor command full (super full version))

NOTICE: remember the commands mentioned here, and walk LINUX to be free and easy!

This is the basic skill, after training this ability, you can learn excellent skills

If the practice is according to this procedure, results will make off the meridians, Qi retrograde, ha ha ha!

XP

Swap two character positions

DDP

Move up and down the two line

J

Merge two rows up and down

DG

Delete all rows

D$

Removed from the current position to the end of the line

Y$

Copy from the current position to the end of the line, if you want to paste it to other parts of P

: AB, string, strings

For example: "AB, USA, United, States, of, America."",

When you insert USA in the text view

United, States, of, America jumped out

: g/^/m0

Reverse file content

: map, keys, new_seq

Define your current keyboard command

: set [all]

Edit status of VI or ex

For example, show each line: set nu

: X

Then the system prompts you to enter your password, save it after you enter the password, and then encrypt it when you save it

The next edit will use vi -x filename, and the system will prompt you to enter the password

In the command state, the NYY copies the contents of the lower N line from the cursor line. P stands for paste and paste it down at the cursor.

I usually replace individual characters with R, cover multiple characters, use R, replace one character with multiple characters, use s, replace the whole line, and use S

:%s/old_Word/new_word/g

This instruction is to replace a particular string in the entire file

Move the cursor to line n, and press MK

Move the cursor to line m, and press "ay'k"

The line from n to m is saved to the a register, and so on, B, C,... Registers, etc.

Sorry, add to paste somewhere, move the cursor directly to a place and press' AP '

Delete command operation

D l deletes the current character (the same as the X command)

D 0 deletes to the beginning of a row

D ^ deletes the first character position of a

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值