vim 每行中間插入word - Linux

By Lucy
at 2014-05-27T22:29
at 2014-05-27T22:29
Table of Contents
7417325838327275368375272753
5489729735953753735752988301
7453796375234539863753412435
最近遇到的問題,假設我有上面那筆資料,我使用vim去開啟後
想要在固定數字間加入tab加以區隔,請問有辦法嗎?
-------每隔四個數字,加入一個空白建----------
7417 3258 3832 7275 3683 7527 2753
5489 7297 3595 3753 7357 5298 8301
7453 7963 7523 4539 8637 5341 2435
-------目前只知道 如何在每行開頭加入文字--------
%s/^/gg 在每行開頭加入'gg'
--
5489729735953753735752988301
7453796375234539863753412435
最近遇到的問題,假設我有上面那筆資料,我使用vim去開啟後
想要在固定數字間加入tab加以區隔,請問有辦法嗎?
-------每隔四個數字,加入一個空白建----------
7417 3258 3832 7275 3683 7527 2753
5489 7297 3595 3753 7357 5298 8301
7453 7963 7523 4539 8637 5341 2435
-------目前只知道 如何在每行開頭加入文字--------
%s/^/gg 在每行開頭加入'gg'
--
Tags:
Linux
All Comments

By Iris
at 2014-05-30T20:16
at 2014-05-30T20:16

By Linda
at 2014-06-01T17:37
at 2014-06-01T17:37

By Todd Johnson
at 2014-06-02T22:48
at 2014-06-02T22:48

By Tom
at 2014-06-03T05:06
at 2014-06-03T05:06

By Adele
at 2014-06-04T18:39
at 2014-06-04T18:39
Related Posts
新買的usb3外接盒無法寫?

By Rosalind
at 2014-05-27T17:19
at 2014-05-27T17:19
沒 root 權限如何用 VPN

By Michael
at 2014-05-26T19:08
at 2014-05-26T19:08
HackingThursday 固定聚會 (2014-05-29)

By Eartha
at 2014-05-26T12:06
at 2014-05-26T12:06
影音播放器沒畫面

By Elma
at 2014-05-25T18:20
at 2014-05-25T18:20
fedora掛載windows D槽,資料夾問題!?

By Noah
at 2014-05-24T21:02
at 2014-05-24T21:02