0

Every time I launch vim I have this in clipboard:

let g:netrw_dirhistmax  =10
let g:netrw_dirhist_cnt =8
let g:netrw_dirhist_1=...
let g:netrw_dirhist_2=...
let g:netrw_dirhist_3=...
let g:netrw_dirhist_4=...
let g:netrw_dirhist_5=...
let g:netrw_dirhist_6=...
let g:netrw_dirhist_7=...
let g:netrw_dirhist_8=...

I know, vim -u NONE, remove plugins one by one... Just thought maybe somebody knows what's causing it.

  • Someone somehow do something like this let @+="blah-blah-blah"? let @+= sets vim register "+ aka system clipboard. Look carefully your .vimrc and plugins scripts. – Alex Kroll Jul 14 '15 at 17:03
  • "I know, vim -u NONE, remove plugins one by one... Just thought maybe somebody knows what's causing it." -> So did this fix it? – Martin Tournoij Jul 20 '15 at 14:37
  • Haven't tried yet. – firedev Jul 20 '15 at 14:39
3

This is a very bad answer (down-votes deserved)

1) netrw has to do with history of remote files editing.

(from: https://stackoverflow.com/a/9850662/2991627:

netrw is a kind of vim plugin/script which supports reading and writing files across networks. .netrwhist is a history file which maintains all the directories that were modified. So whenever you modify the contents of ~/.vim it adds one entry in .netrwhist )


2) Somewhere (.vimrc, .netrwhist or similar) you may have some operation that changes register "+ or "* (look for /[*+] in those files...) and see if there is something strange...

  • Not a bad answer at all. – Wildcard Mar 2 '16 at 1:45
  • @Wildcard, thank you; (it is too speculative). – JJoao Mar 2 '16 at 21:07
0

That looks like the contents of .netrwhist, a file typically placed in ~/.vim/.netrwhist. I suggest upgrading your netrw and see if that fixes the problem, because I'm not seeing it: http://www.drchip.org/astronaut/vim/index.html#NETRW .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.