vim 如何做到 ultraedit 的 column mode? - Linux

By Genevieve
at 2008-08-04T00:00
at 2008-08-04T00:00
Table of Contents
vim =>
:help visual-operators
:help blockwise-operators
※ 引述《enduser (淡水..)》之銘言:
: 可以請教一下 vim 的 ctrl+v 的區塊模式選取一個區塊之後
: 要怎樣對這區塊做一些動作呢?
: 例如我希望在這區塊:
: 1. 每一行最開頭加上 ;debug 這樣
: 2. 在這區塊的上面插入一行 ;debug-sart 最下面插入 ;debug-end
: 3. 在這區塊的後面有整齊的註解 ;debug
: 效果向下面這樣:
: 1. ;debug mov ax,2
: ;debug mov bx,1
: ;debug mov cx,3
: 2. ;debug-start
: mov dx, 80
: out dx, al
: ;debug-end
: 3. mov dx, 80 ;debug
: out dx, al ;debug
--
生即是死,死即是生,故實無生死也。
--
Tags:
Linux
All Comments

By Vanessa
at 2008-08-08T09:23
at 2008-08-08T09:23
Related Posts
用VM裝ubuntu裝好重開後整台電腦死當

By Tom
at 2008-08-03T22:12
at 2008-08-03T22:12
請問有怎麼防垃圾信?

By Olive
at 2008-08-03T21:51
at 2008-08-03T21:51
不明的磁碟分割,救命

By Selena
at 2008-08-03T21:30
at 2008-08-03T21:30
linux帶著走:slax+gcin+中文化

By Edwina
at 2008-08-03T19:41
at 2008-08-03T19:41
請問要怎麼樣關閉不要用的 Core ?

By Hedwig
at 2008-08-03T17:59
at 2008-08-03T17:59