零零社区|百姓的网上家园-互动交流平台!(0.0)=^_^=(00社区)

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz

VI 快速上手

2013-4-5 12:32| 发布者: 123456000000| 查看: 17| 评论: 0

摘要: 按键 功能h leftj downk upl rightnh n char leftnj n char downw fwd Wordb back wordH upper left of screenM mid screenL lowest line of screenG bot ...
按键             功能
h                 left

j                  down

k                 up

l                  right

nh               n char left

nj                n char down

w                 fwd Word

b                 back word

H                 upper left of screen

M                 mid screen

L                  lowest line of screen

G                  bottom of file

nG                to line n

0                  begin line

$                  end line

i                   insert before

a                  insert after

A                  ins end line

o                  opens line

O                 opens line above

xp                 transpose

J                   join lines

rC                 rep char "C"

r                   rep with <CR>

R                  rep to esc

u                  undoes last

x                  del char

dw               del word

nx                del n char

ndw             del n words

dd                del line

ndd              del n lines

D                 to end the line

^L                redraw screen

z                  current line to top

z-                 current line to bottom

z.                 line to middle screen

^F                page fwd

^B                page back

^D               1/2 page forward

^U               1/2 page back

yy                 stores current line in buffer

nyy               stores n lines in buffer

ynw              stores n words in buffer

p                   puts buffered text after current line or word

P                   puts buffered text before current line or word

/string           search forward

?string           search backward

n,N                repeat last search

n                  same direction, N opposite

ZZ                 writes changes - quits

:wq               writes changes - quits

:q                 no changes - quits, q! for sure

:w                 writes changes, doesn't quit

路过

雷人

握手

鲜花

鸡蛋

相关阅读

发表评论

最新评论

相关分类


Archiver|手机版|小黑屋|00社区

GMT+8, 2023-1-31 10:51 , Processed in 0.047604 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部