11 使用縮寫
要為經(jīng)常使用的單詞或表達(dá)式創(chuàng)建縮寫,可使用:ab命令。
1 創(chuàng)建縮寫,語法::ab [ short long ]
2 刪除縮寫,語法: :una short
12 命令補(bǔ)全與文本補(bǔ)全
命令補(bǔ)全:Tab
關(guān)鍵字補(bǔ)全:^N ^P
13 shell命令
14.1 執(zhí)行shell命令
1 :!command 暫停vi,執(zhí)行制定的shell命令
2 :!! pause vi 執(zhí)行上一條shell命令
3 :sh 暫停vi,啟動一個新的shell
4 :!csh 暫停vi,啟動一個新的c-shell
14.2 使用shell命令處理數(shù)據(jù)
1 n!! command 對n行數(shù)據(jù)執(zhí)行command
2 !move command 對當(dāng)前光標(biāo)至move所指定的位置的數(shù)據(jù)執(zhí)行command
3 !move fmt 格式化當(dāng)前光標(biāo)到move所指定的行
本文導(dǎo)航
- 第1頁: 首頁
- 第2頁: 啟動與編輯vi-vim
- 第3頁: 插入、移動和跳轉(zhuǎn)
- 第4頁: 搜索及文本改動
- 第5頁: 刪除和復(fù)制
- 第6頁: 使用縮寫、命令補(bǔ)全與文本補(bǔ)全
- 第7頁: 顯示與設(shè)置選項(xiàng)和初始化與配置文件