在一分钟之前在另一个编辑器上工作的情况下,这是非常好的,你的大脑还没有准备好建议你的手指如何键入真实的东西。
但是,有一件事我的大脑需要做一点点思考:这是文本选择模式。在非vi编辑器中,我将使用Shift Arrow,并在MacVim中尝试此操作不起作用。但另一方面,它并没有看向我,Shift Arrow也被用于任何其他的东西。是否可以重新映射密钥以使其成为可能?
(理想情况下,编辑器在选择文本后仍将处于插入模式;这将节省一些额外的关键笔划。)
Text editors on Mac OS X lets the user
hold down shift+movement key to extend
the selection. Also,pressing a
printable key whilst selecting
replaces the current selection with
that character. MacVim can emulate
this kind of behavIoUr (by providing
key bindings and by setting ‘keymodel’
and ‘selectmode’ to non-default
values) although it is not enabled by
default. To make MacVim behave more
like TextEdit and less like Vim,add
the following lines to your “~/.vimrc”
(not .gvimrc) file:
if has("gui_macvim") let macvim_hig_shift_movement = 1 endif
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。