杂项-Vscode/IdeaVim中,在Insert mode下双击,会自动进入Visual mode

问题原因

vim工作原理的问题,它不能在Insert mode中进行选中,所以会自动切换到Visual mode。但是,vim 有一个所谓的 “select” 模式,与其他编辑器中的通常选择非常相似。可以通过中添加set selectmode=mouse 来使用鼠标选择激活此模式。此外其他按键也可能导致这种情况,这里更推荐使用
set selectmode=mouse,key,cmd,ideaselection
参考资料:

  1. AlexPl292(2021),why double click or select something in insert mode, it automatic transfer to normal mode?,https://github.com/JetBrains/ideavim/discussions/342#discussioncomment-1762886
  2. reddit(2022),Turning off "enter normal mode on selection" in IdeaVIM, https://www.reddit.com/r/IntelliJIDEA/comments/pv9u0v/turning_off_enter_normal_mode_on_selection_in/
posted @ 2025-02-22 16:57  小约翰氪憨  阅读(88)  评论(0)    收藏  举报