vi-vim (十四):shell命令

shell命令

1 执行shell命令

1      :!command      暂停vi,执行制定的shell命令

2      :!! pause vi      执行上一条shell命令

3      :sh              暂停vi,启动一个新的shell

4      :!csh           暂停vi,启动一个新的c-shell

2 使用shell命令处理数据

1      n!! command          对n行数据执行command

2      !move command    对当前光标至move所指定的位置的数据执行command

3      !move fmt              格式化当前光标到move所指定的行

posted @ 2013-05-18 13:03  smstars_test  阅读(466)  评论(0编辑  收藏  举报