使用SHIFT箭头选择vim/MacVim中的文本

MacVim中更好的功能之一是可以使用通常的OS命令来复制和粘贴文本(即命令C和命令V)。

在一分钟之前在另一个编辑器上工作的情况下,这是非常好的,你的大脑还没有准备好建议你的手指如何键入真实的东西。

但是,有一件事我的大脑需要做一点点思考:这是文本选择模式。在非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

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...