命令我想从下面的行删除百分比标记:指定位置在Ex模式
oh_test_() ->
[
%{"fold", ?_test(fold(ns()))},
%{"fold nested", ?_test(fold_nested(ns()))},
%{"push arg empty table", ?_test(push_arg_empty_table(ns()))},
%{"push arg table 1", ?_test(push_arg_table1(ns()))},
%{"push arg nested table", ?_test(push_arg_nested_table(ns()))},
%{"multicall 0", ?_test(multicall_0(ns()))},
%{"multicall 1", ?_test(multicall_1(ns()))},
%{"multicall 2", ?_test(multicall_2(ns()))}
].
光标是与第一%
线。
:,/%/s/%//
或者:
:,/%/normal ^x
预期:所有%的痕迹去除。结果:仅删除前两个百分点。
- 为什么?
- 我应该怎么办呢
- 不使用可视化模式,并
- 不计算行号?
谢谢!我结束了':,/]/s /%//'。因为我总是知道''''行不会有'%'。并感谢参考。 – 2012-07-25 06:58:38