I have just started using Vim on a Linux distribution -- Elementary OS. In Vim, CTRL-V
appears to be mapped to paste
instead of taking me to block visual mode. How do I reverse this? I'm pretty sure I didn't configure vim to behave this way and from what I've read so far this should only happen in MS Windows.
Edit: Contents of .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 <[email protected]>'
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
This is not really a vim Issue.
Elementary OS uses their own terminal called Pantheon Terminal, which uses CTRL+C/CTRL+V for copying/pasting. This prevents the shortcut from being passed on to vim.
You should change the terminal to some other application, or change this behavior in the terminal settings.
Here's some blog with more info that I just found:
http://lmelinux.net/2014/12/06/ctrlc-will-copy-text-clipboard-elementarys-terminal/
The part that is interesting for you is:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With