Vim Tutorial Study(1)

最近闲来无聊,又想把VIM Tutorial Book 翻出来看看。好东西总是有让人想去掌握的冲动啊!杯具的是,每次都是从Chapter1开始,然后到Chapter2就无疾而终了。

希望这次可以持之以恒下去。每次看都做点札记,以勉励自己,提醒自己吧。

*Be careful about the VI-compatibility mode which means you will lose many advanced Vim features and the VIM mode*

:set nocompatible<Enter>

this kind of {:x} commands need an implicit <Enter>

Modes

The Vim editor is a modal editor

Normal mode/Command mode: the bottom of the screen displays the filename or is blank

Anytime you can press <ESC> to get back to normal mode

Insert mode: the indicator displays --INSERT--

Visual mode: indicator shows --VISUAL--

Chapter1: Basic editing commands

four movement commads:

h  left

j  down

k  up

l  right

deleting commands:

delete a line: dd

delete a word: x

<*********这个我对它其实概念不清啦,估计用的也不会太多**********

Undo commands:

undo the last edit: u

undo all the changes made on the last line that was edited: U(uppercase)  这个的使用有点乱,建议还是不要用了!

Redo command:

undo too many times, reverse the preceeding command: ctrl+R

发现Ctrl+R和Ctrl+r好像没区别

*******************>

Getting out commands:

ZZ

:q!

:wq

:w

inserting commands:

insert before the cursor: i

insert after the cursor: a

openning up a new line commands:

new line above cur line: O

new line below cur line: o

Help command:

:help

Using a count to edit faster:

3a!<Enter> === a!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值