[vim ]選取同一直行的方法?消失

看板Editor (編輯器(vim/emacs))作者時間8年前 (2015/10/01 16:42), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
各位好 我剛接觸vim 有去鳥哥跟google爬文 但都找不到我想要的指令 例如vim code如下 // 1.xxxxxxx 2.qwerttt 3.sdfghhh 4.jiyyspo // 我想要同時選取1 2 3 4這條直行 把並且把他們都改成* 變成下面: // *.xxxxxxx *.qwerttt *.sdfghhh *.jiyyspo // 變成這樣 請問指令要怎麼打? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.14.208 ※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1443688955.A.B71.html

10/01 17:00, , 1F
到第一行行首, ctrl-v, 到第四行, r, *
10/01 17:00, 1F

10/01 17:37, , 2F
感謝樓上大大!!!!成功!!!!
10/01 17:37, 2F
文章代碼(AID): #1M3F7xjn (Editor)
文章代碼(AID): #1M3F7xjn (Editor)