今天头疼的厉害。不过昨天没更新,今天必须有了。介绍个简单点的。
vim中在普通模式下,空格这么大一按键不用有点浪费,所以有了space.vim.
他能重复执行motion,比如
*Hello World
按下fo
,会将光标移动到第一个o上,再按下空格,就能移动到第二个o了,他会重复执行上一个fo
。按下<Shift-Space>
反向执行改操作,也就是光标又会回到第一个o
.
除此之外,space.vim还能重复搜索命令,diff移动命令,qucikfix等操作。让空格键变的非常有用.下面是space.vim可以重复的全部命令列表:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
| Character movements: |left-right-motions| |f| |F| |t| |T| |;| |,|
Search commands: |search-commands| |star| |gstar| |#| |g#| |n| |N|
Jump list jumps: |jump-motions| |CTRL-O| |CTRL-I|
Change list jumps: |change-list-jumps| |g;| |g,|
Diff jumps: |jumpto-diffs| |]c| |[c|
Parenthesis and bracket jumps: |various-motions| |])| |[(| |]}| |[{|
Method jumps: |various-motions| |]m| |[m| |]M| |[M|
Section jumps: |object-motions| |]]| |[]| |][| |[[|
Fold movements: |zj| |zk| |]z| |[z|
Tag movements: |tag-commands| |CTRL-]| |:tag| |:tnext| |:tprevious| |:tNext| |:trewind| |:tfirst| |:tlast|
Undolist movements: |undo-branches| |g-||g+|
Quickfix commands: |quickfix| |:make| |:vimgrep| |:grep| |:cc| |:cnext| |:cprevious| |:cNext| |:cfirst| |:clast| |:crewind| |:cfile| |:cnfile| |:cpfile| |:cNfile|
Location list commands: |location-list| |:lmake| |:lvimgrep| |:lgrep| |:ll| |:lcnext| |:lcprevious| |:lcNext| |:lcfirst| |:lclast| |:lcrewind| |:lcfile| |:lcnfile| |:lcpfile| |:lcNfile|
|
今天解介绍到这里。