【发布时间】:2011-01-16 23:20:31
【问题描述】:
是否有可能使 visual-line-mode(在正常模式下按 V 后的一个)像 first mark 一样进行选择的第一行的开头和第二个标记 - 最后一行的结尾?
例如,目前在V、j和M-x comment-dwim之后:
here<cursor>is a
simple example
变成
here;; is a
;; simp
le example
而期望的结果通常是:
;; here is a
;; simple example
当然,可以为 comment-dwim 编写一个包装器,但我怀疑/希望有更正确的解决方案。
提前谢谢你。
【问题讨论】: