I have the following lines
autocmd filetype tex nmap <d-p-1> cha
autocmd filetype tex nmap <d-p-2> sec
autocmd filetype tex nmap <d-p-3> sub
autocmd filetype tex nmap <d-p-4> ssub
autocmd filetype tex nmap <d-p-5> par
autocmd filetype tex nmap <d-p-6> subp
autocmd filetype tex nmap <d-s-p-0> part*"
autocmd filetype tex nmap <d-s-p-1>
autocmd filetype tex nmap <d-s-p-2>
autocmd filetype tex nmap <d-s-p-3>
autocmd filetype tex nmap <d-s-p-4>
autocmd filetype tex nmap <d-s-p-5>
autocmd filetype tex nmap <d-s-p-6>
I selected the last words in the first 6 lines using visual-block, tried to copy and paste as block(using p
or P
, and it just creates lines like this:
autocmd filetype tex nmap <d-p-1> cha
autocmd filetype tex nmap <d-p-2> sec
autocmd filetype tex nmap <d-p-3> sub
autocmd filetype tex nmap <d-p-4> ssub
autocmd filetype tex nmap <d-p-5> par
autocmd filetype tex nmap <d-p-6> subp
autocmd filetype tex nmap <d-s-p-0> part*"
autocmd filetype tex nmap <d-s-p-1>
cha
sec
sub
ssub
par
subp
autocmd filetype tex nmap <d-s-p-2>
autocmd filetype tex nmap <d-s-p-3>
autocmd filetype tex nmap <d-s-p-4>
autocmd filetype tex nmap <d-s-p-5>
autocmd filetype tex nmap <d-s-p-6>
This is the state of register after copying
I am using VimR and have
set clipboard+=unnamed
set go+=a
set cpoptions+=y
Why hasn't it worked?!?
update: It behaves the same in neovim binary(I am on macos). with -u NONE
it works as intended.
Thanks
$
to extend the selection to the end of all lines? – B Layer Aug 17 '19 at 22:19ctrl-v
thenj
5 times until I was ons
of "subp". then I pressed$
andy
. – eyal karni Aug 17 '19 at 22:23p
orP
in the end of "autocmd filetype tex nmap <d-s-p-1>" – eyal karni Aug 17 '19 at 22:24