CTRL-V displayed for insertion instead of a visual mode block in Vim on an elementary OS (linux)

I just started using Vim in a Linux distribution - Elementary OS. In Vim it is CTRL-Vdisplayed as pasteinstead of forcing me to block the visual mode. How to do it? I am sure that I did not configure vim in order to behave in the same way from what I read so far, this should only happen on MS Windows.

Edit: Content .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
+4
source share
1 answer

This is not a vim problem.

Elementary OS uses its own terminal called Pantheon Terminal, which uses CTRL + C / CTRL + V to copy / paste. This prevents the shortcut from being passed to vim.

.

, :

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

:

, , org.pantheon.terminal.natural-copy-paste gsettings, .

+5

All Articles