Re: [問題] vim 如何做到 ultraedit 的 column mode?
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
--
生即是死,死即是生,故實無生死也。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.207.173
推
08/04 03:14, , 1F
08/04 03:14, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):