V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cicada
V2EX  ›  Visual Studio Code

vscode vim normal 模式下 Tab 补全问题

  •  
  •   cicada · 2 天前 · 680 次点击
    vscode+vim 插件,在 vim normal 下,如果 ai 补全代码的提示,按 Tab 无法接受,一定要到 insert 模式才可以接受。但是 cursor+vim 插件,在 normal 下也可以 tab 接受代码或者跨行编辑。
    请问:
    1.vscode+vim 模式是否也可以通过配置,实现在 vim normal 模式下也可以 tab 接受代码
    2.cursor+vim 模式下正常工作,是否是因为 cursor 本身对 vim 用户做了优化。
    2 条回复    2025-10-30 10:45:25 +08:00
    Stunt4013
        1
    Stunt4013  
       2 天前
    在 normal mode 下 tab 相当于 CTRL-I ,试试把 vim 默认的 keymap 删除
    xlsama
        2
    xlsama  
       13 小时 20 分钟前
    `keybindings.json`, 我用的 neovim 这样配置,可以在 normal 模式下 tab 补全,你可以参考一下

    ```json
    {
    "key": "tab",
    "command": "-vscode-neovim.send",
    "when": "neovim.init && neovim.recording || editorTextFocus && neovim.init && neovim.mode != 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'"
    },
    ```
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2222 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:06 · PVG 00:06 · LAX 09:06 · JFK 12:06
    ♥ Do have faith in what you're doing.