在 Elementary OS (linux) 上的 Vim 中,CTRL-V 映射为粘贴而不是阻止视觉模式

CTRL-V mapped to paste instead block visual mode in Vim on Elementary OS (linux)

我刚刚开始在 Linux 发行版上使用 Vim -- 初级 OS。在 Vim 中,CTRL-V 似乎映射到 paste,而不是让我屏蔽视觉模式。我该如何扭转这一局面?我很确定我没有将 vim 配置为以这种方式运行,而且从我目前所读的内容来看,这应该只发生在 MS Windows.

编辑:.vimrc

的内容
" 1. Pathogen (plugins autoloader)
execute pathogen#infect()
syntax on
filetype plugin indent on


" 2. Documentor
au BufRead,BufNewFile *.php inoremap <buffer> <C-P> :call PhpDoc()<CR>
au BufRead,BufNewFile *.php nnoremap <buffer> <C-P> :call PhpDoc()<CR>
au BufRead,BufNewFile *.php vnoremap <buffer> <C-P> :call PhpDocRange()<CR>

let g:pdv_cfg_Package = 'FPP Labs Package'
let g:pdv_cfg_Author = 'Gboyega Dada <gboyega@fpplabs.com>'
let g:pdv_cfg_ClassTags = ["package","author","version"]


" 3. Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0


" 4. Tab stops
set tabstop=4
set shiftwidth=4
set expandtab

这不是真正的 vim 问题。

Elementary OS 使用他们自己的终端 Pantheon Terminal,copying/pasting 使用 CTRL+C/CTRL+V。这可以防止将快捷方式传递给 vim.

您应该将终端更改为其他应用程序,或者在终端设置中更改此行为。

这是我刚找到的包含更多信息的博客:

http://lmelinux.net/2014/12/06/ctrlc-will-copy-text-clipboard-elementarys-terminal/

您感兴趣的部分是:

Elementary developers are also aware that some people will not be happy with this change that’s why there will be a new gsettings key at org.pantheon.terminal.natural-copy-paste where one can disable this behavior.