New answers tagged


The problem is the clipboard. For its internal registers, Vim keeps track of what type they are (characterwise, linewise or blockwise). See also :h getregtype(). However for the clipboard, Vim cannot know, because any program could have put data in there, so it will always assume linewise. You can however force a different way, just call setreg() like this: ...

Top 50 recent answers are included