使用ctrl+shift+箭头键在VIM中选择word

使用ctrl+shift+箭头键在VIM中选择word,vim,editor,Vim,Editor,现在,我的配置是: 还有两行: source $VIMRUNTIME/mswin.vim behave mswin 我的示例文本是: foo.bar 如何使用Ctrl+Shift+Right选择foo,然后选择.bar 酒吧,然后是福。使用Ctrl+Shift+Left Ctrl+Lelf和Ctrl+Right在点字符上停止,就像传统的编辑器一样,但当我使用Ctrl+Shift+箭头时,它只在空白处停止 vim版本:7.4 操作系统:ubuntu 14.04选择模式将由:behave msw

现在,我的配置是:

还有两行:

source $VIMRUNTIME/mswin.vim
behave mswin
我的示例文本是:

foo.bar
如何使用Ctrl+Shift+Right选择foo,然后选择.bar

酒吧,然后是福。使用Ctrl+Shift+Left

Ctrl+Lelf和Ctrl+Right在点字符上停止,就像传统的编辑器一样,但当我使用Ctrl+Shift+箭头时,它只在空白处停止

vim版本:7.4 操作系统:ubuntu 14.04

选择模式将由:behave mswin启用,该模式仅模拟MS Windows类编辑器的某些行为。只有这些移动光标键、、和以及shift键正在扩展/折叠当前选择

从:帮助选择模式:

尝试阅读::help behave、:help Select mode和:help keymodel

但是,我强烈建议您了解真正的vim动作和命令,并禁用:behave mswin。它实际上更强大


在您的情况下,只需按veE选择first foo,然后选择foo.bar。或者,如果您打算一次选择整个foo.bar,甚至更简单,请按vW。

回答我有同样的问题,下面的答案不是真正的答案。你找到解决办法了吗?我不记得了。vimrc被擦除,我不再使用vim作为我的主编辑器
Commands in Select mode:
- Printable characters, <NL> and <CR> cause the selection to be deleted, and
  Vim enters Insert mode.  The typed character is inserted.
- Non-printable movement commands, with the Shift key pressed, extend the
  selection.  'keymodel' must include "startsel".
- Non-printable movement commands, with the Shift key NOT pressed, stop Select
  mode.  'keymodel' must include "stopsel".
- ESC stops Select mode.
- CTRL-O switches to Visual mode for the duration of one command. *v_CTRL-O*
- CTRL-G switches to Visual mode.
... Using a shifted special key starts selection ... 
... Special keys in this context are the cursor keys, <End>, <Home>, 
<PageUp> and <PageDown>. ...