VIM Ctrl-V Conflict with Windows Paste

前端 未结 8 1714
忘了有多久
忘了有多久 2020-12-12 11:27

I am using VIM in Windows. The problem is that I want to use CtrlV as a visual mode. However, this key has conflict with Windows paste. How can I reset

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 12:19

    Visual mode (and other stuff) working like in Unix requires both JOP's and Windows Programmer's suggestions.

    In GVim on Windows, go to the edit menu, click on startup settings, and comment out the windows-specific garbage (using the vimrc comment character, which is a double-quote). The mswin.vim file is where the ctrl-v override is specified, and the behave mswin option makes it so that the arrow keys don't just apply motion like you'd expect (it also changes the mouse selection behavior).

    "source $VIMRUNTIME/mswin.vim
    "behave mswin
    

    I like to add a black-background colorscheme in there as well, so it looks more like what I'd see in a terminal (and because a light background is great on paper, but awful on a backlit screen): colorscheme koehler

提交回复
热议问题