http://vim-adventures.com/
攻略
0.前面几关都很简单,就不说了
0.前面几关都很简单,就不说了
1.dw on x
2.第六关
字段一:先走的下面
最后:别担心,那个地方是可以走通的,并没有堵死
3.第七关
先打开那个房子都可以,因为那道题可用d%也可用dG
左下那个要先选一个fx,然后退出,然后,就可以只用,;不然总是会多一步
4.第八关
先到右下的地图中得到#,才能到中间的地图把sue 补全拿到蓝钥匙打开门拿到n,然后才能完成左下
5.第九关
右上树林中有黄钥匙,拿到后开左上房子拿到数字键,
然后向下,走到叉路后先走右边,右下那个段落有一个地方要2rG
6.第11关
先向下拿到c ,然后向右,拿到b后,进入另一个buffer,:b#,走两个字段,分别拿蓝钥匙和黄钥匙,然后回sky,开门开箱拿到i键
sky的左下有s键
然后向下走,下面右侧有a,中间桥上那个!要用a才能过
拿到a后,到ground,:b#,一个段落 拿到蓝钥匙,回sky ,开蓝门,拿o
拿到o之后补桥,到中右,然后回ground
7.第12关
那个蓝门先不管
先走右下,去拿()键
然后右中,拿到【】键
然后左下,拿到{}键(may the 4th be with you),继续走到一堆case 那里(最左下)能拿到一把钥匙
然后原路返回,向上走,两行横着的段落有个小钥匙
过桥后有个黄门,先向下走,拿到ia,然后有两个红门没钥匙过不去
往回走,走到刚刚的黄门,开门,左边一把红钥匙,右边一把蓝钥匙,回去开最开始的蓝门,蓝门内的段落有红钥匙
两把红钥匙到手,去刚刚两个红门的地方
先走右边的红门,拿到.键
然后左边
然后左边
8.第14关
先拿全第一列的键
2.33行39列有/?键
1.41列
3.11行47列有`键
4.倒数第四个pro前面
然后 :marks
顺序H('键)->A(m键)->W(ctrl+r)->M(有个星星)
TP(按照reg里说的从W到Y的路上会路过提示,提示的key是Toadstool和Peach,然后输入:mark Toadstool 和:mark Peach得到key 和 提示)
然后回答buffer 4,(:b 4),找到倒数第四个pro,然后用|定位,定位2词,第二次才能进入
进入后mark每个字母,之后会出现箱子,开箱子,得到所有u键和所有navigation键
最后,:b underground
mark 每个字,然后big bug出现,用bram charity。。。三个单词消灭小bug
然后用10u 和 10ctrl+r消灭大bug,技巧bug走到http cluster 那里用10u
navigate:
web
WEB
0$^(第一个不是空格的字符)
ft
FT
;(repeat ft),(reverse repeat ft)
% (括号匹配)
gg G(3gg=3G=:3)
*#nN(/?)
()句子
{}段落
[( [{
]) ]}括号匹配
选中:
y
yax(x 是代码代码块的,比如ya) ,yap, yas,yaw)
yix (x 是代码代码块的,比如yi) ,yip, yis,yiw)
删除:
x d
X(x 相当于delete ,X相当于 backspace)
D相当于(d$)
dd
替换 :
r (replace)
~(大小写互换)
c (change)
s (substitute)
插入:
a
A
i
I
o
O
粘贴:
p
P
c (change)
s (substitute)
插入:
a
A
i
I
o
O
粘贴:
p
P
寄存器:
查看寄存器:reg
:reg “2
指定寄存器"1p
空寄存器 ”_
mark:
mx 加书签
:delm x 删除书签
:delm!删除所有书签
`x 跳转到书签
上面的x是书签名
a-z是local的
A-Z是全局的
其他:
:!ls(shell 的ls)
:ls(buffer)
:set nu
:set nonu
:set nu!
:set nonu!
全文替换:
:%s/dest/new/g
%每行
g所有
dest 正则表达式
这个是vimtutor中的说明:
这部分这个游戏没有提到:
正则查找和替换,可以参考
http://nodex.iteye.com/blog/360709
全文替换:
:%s/dest/new/g
%每行
g所有
dest 正则表达式
这个是vimtutor中的说明:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 4.4: THE SUBSTITUTE COMMAND
** Type :s/old/new/g to substitute 'new' for 'old'. **
1. Move the cursor to the line below marked --->.
2. Type :s/thee/the <ENTER> . Note that this command only changes the
first occurrence of "thee" in the line.
3. Now type :s/thee/the/g . Adding the g flag means to substitute
globally in the line, change all occurrences of "thee" in the line.
---> thee best time to see thee flowers is in thee spring.
4. To change every occurrence of a character string between two lines,
type :#,#s/old/new/g where #,# are the line numbers of the range
of lines where the substitution is to be done.
Type :%s/old/new/g to change every occurrence in the whole file.
Type :%s/old/new/gc to find every occurrence in the whole file,
with a prompt whether to substitute or not.
这部分这个游戏没有提到:
正则查找和替换,可以参考
http://nodex.iteye.com/blog/360709
宏录制,可视化模式,可以参考陈皓的blog
http://coolshell.cn/articles/5426.html
另外一些vim设置
http://blog.csdn.net/harryhare/article/details/44219743
关于vim 自带的文档:
1.vimtutor
2.文档
:help
cyan色的连接,可以按 ctrl+],或者鼠标可用时双击鼠标进入
ctrl + t 或者 control + o
:q 退出help
http://coolshell.cn/articles/5426.html
另外一些vim设置
http://blog.csdn.net/harryhare/article/details/44219743
关于vim 自带的文档:
1.vimtutor
2.文档
:help
cyan色的连接,可以按 ctrl+],或者鼠标可用时双击鼠标进入
ctrl + t 或者 control + o
:q 退出help