回文章列表
作者sonyu.bbs@ptt.cc (:P) 看板: linux
標題Re: [問題] vim 如何做到 ultraedit 的 column mode?
時間批踢踢實業 (2008/08/04 Mon 00:00:17)
      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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻