安裝VIM插件"visincr.vba.gz",路徑:https://www.vim.org/scripts/script.php?script_id=670。
(1). 下載後點選visincr.vba.gz,按"滑鼠右鍵"解壓縮。
(2). 解壓縮後,點選visincr.vba,按"滑鼠右鍵",選擇使用Vim開啟。
(3). 按"ESC"鍵,輸入":so %",安裝插件。
(4). 安裝完成。
(5). 測試安裝是否成功,使用Vim開啟一個新的編輯檔案,按"i"輸入文字如下所示。
(6). 按"ESC"至命令模式,在按"Ctrl + V",之後按'方向鍵"選擇需排序的數字,最後輸入":I"按"ENTER"。
(7). 顯示結果如下所示。
範例:
:I
Use "Ctrl+V" to Original Select, ":I"
8 8
8 9
8 10
8 11
8 12
:I -1
Use "Ctrl+V" to Original Select, ":I -1"
8 8
8 7
8 6
8 5
8 4
:II
Use "Ctrl+V" to Original Select, ":II"
8 8
8 9
8 10
8 11
8 12
:II -1
Use "Ctrl+V" to Original Select, ":II -1"
8 8
8 7
8 6
8 5
8 4
:IMDY
Use "Ctrl+V" to Original Select, ":IMDY"
06/10/03 6/10/03
06/10/03 6/11/03
06/10/03 6/12/03
06/10/03 6/13/03
06/10/03 6/14/03
:IYMD
Use "Ctrl+V" to Original Select, ":IYMD"
03/06/10 03/06/10
03/06/10 03/06/11
03/06/10 03/06/12
03/06/10 03/06/13
03/06/10 03/06/14
:IDMY
Use "Ctrl+V" to Original Select, ":IDMY"
10/06/03 10/06/03
10/06/03 11/06/03
10/06/03 12/06/03
10/06/03 13/06/03
10/06/03 14/06/03
:ID
Use "Ctrl+V" to Original Select, ":ID"
Sun Sun
Sun Mon
Sun Tue
Sun Wed
Sun Thu
:ID
Use "Ctrl+V" to Original Select, ":ID"
Sunday Sunday
Sunday Monday
Sunday Tuesday
Sunday Wednesday
Sunday Thursday
:IA
Use "Ctrl+V" to Original Select, ":IA"
a a
a b
a c
a d
a e
:IO
Use "Ctrl+V" to Original Select, ":IO"
5 5
5 6
5 7
5 10
5 11
:IR
Use "Ctrl+V" to Original Select, ":IR"
II II
II III
II IV
II V
II VI
Use "Ctrl+V" to Original Select, ":IX"
8 8
8 9
8 a
8 b
8 c
沒有留言:
張貼留言