为什么control + space在MacVim 8.0中将光标向前移动一个字?

时间:2017-05-04 06:38:54

标签: vim cscope

(注意:我没有看到可能重复的任何内容(Certain key mappings not working in MacVim),这解释了为什么 control + space 的行为类似于 w 在我的MacVim上。)

我看到当我按下control + space时,它会表现出来 好像我按了w,即光标向前移动一个字 下一个单词的开头。

这对我来说是个问题,因为我想使用 control + space cscope_maps的组合 插件。

我在终端内运行的Vim 7.4中没有发生此问题。

即使在使用mvim -u NONE运行MacVim 8.0之后,也会出现此问题。

我有两个问题。

  1. 为什么会这样?
  2. 如何防止这种情况发生,以便我可以使用它  组合使用cscope_maps插件?
  3. 以下是我的设置详情。

    $ brew search macvim
    macvim ✔
    
    $ brew list macvim
    /usr/local/Cellar/macvim/8.0-131/bin/gview
    /usr/local/Cellar/macvim/8.0-131/bin/gvim
    /usr/local/Cellar/macvim/8.0-131/bin/gvimdiff
    /usr/local/Cellar/macvim/8.0-131/bin/gvimex
    /usr/local/Cellar/macvim/8.0-131/bin/mview
    /usr/local/Cellar/macvim/8.0-131/bin/mvim
    /usr/local/Cellar/macvim/8.0-131/bin/mvimdiff
    /usr/local/Cellar/macvim/8.0-131/bin/mvimex
    /usr/local/Cellar/macvim/8.0-131/MacVim.app/Contents/ (2111 files)
    
    $ mvim --version
    VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 19 2017 09:53:00)
    MacOS X (unix) version
    Included patches: 1-567
    Compiled by Homebrew
    Huge version with MacVim GUI.  Features included (+) or not (-):
    +acl             +find_in_path    -mouse_sysmouse  -tag_any_white
    +arabic          +float           +mouse_urxvt     +tcl
    +autocmd         +folding         +mouse_xterm     +termguicolors
    +balloon_eval    -footer          +multi_byte      +terminfo
    +browse          +fork()          +multi_lang      +termresponse
    ++builtin_terms  +fullscreen      -mzscheme        +textobjects
    +byte_offset     -gettext         +netbeans_intg   +timers
    +channel         -hangul_input    +num64           +title
    +cindent         +iconv           +odbeditor       +toolbar
    +clientserver    +insert_expand   +packages        +transparency
    +clipboard       +job             +path_extra      +user_commands
    +cmdline_compl   +jumplist        +perl            +vertsplit
    +cmdline_hist    +keymap          +persistent_undo +virtualedit
    +cmdline_info    +lambda          +postscript      +visual
    +comments        +langmap         +printer         +visualextra
    +conceal         +libcall         +profile         +viminfo
    +cryptv          +linebreak       +python          +vreplace
    +cscope          +lispindent      -python3         +wildignore
    +cursorbind      +listcmds        +quickfix        +wildmenu
    +cursorshape     +localmap        +reltime         +windows
    +dialog_con_gui  -lua             +rightleft       +writebackup
    +diff            +menu            +ruby            -X11
    +digraphs        +mksession       +scrollbind      -xfontset
    +dnd             +modify_fname    +signs           +xim
    -ebcdic          +mouse           +smartindent     -xpm
    +emacs_tags      +mouseshape      +startuptime     -xsmp
    +eval            +mouse_dec       +statusline      -xterm_clipboard
    +ex_extra        -mouse_gpm       -sun_workshop    -xterm_save
    +extra_search    -mouse_jsbterm   +syntax          
    +farsi           +mouse_netterm   +tag_binary      
    +file_in_path    +mouse_sgr       +tag_old_static  
       system vimrc file: "$VIM/vimrc"
         user vimrc file: "$HOME/.vimrc"
     2nd user vimrc file: "~/.vim/vimrc"
          user exrc file: "$HOME/.exrc"
      system gvimrc file: "$VIM/gvimrc"
        user gvimrc file: "$HOME/.gvimrc"
    2nd user gvimrc file: "~/.vim/gvimrc"
           defaults file: "$VIMRUNTIME/defaults.vim"
        system menu file: "$VIMRUNTIME/menu.vim"
      fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
    Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -F/usr/local/opt/python/Frameworks -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
    Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -F/usr/local/opt/python/Frameworks -L/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -F/usr/local/opt/python/Frameworks -framework Python  -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby    
    

    如果我运行mvim -u NONE然后输入:map命令,我只会看到 一个映射。

    v <BS> "-d
    

0 个答案:

没有答案