amix / vimrc

The ultimate Vim configuration (vimrc)
MIT License
30.78k stars 7.3k forks source link

Weird space at start of each line when copying via mouse #754

Closed roupasz closed 7 months ago

roupasz commented 9 months ago

Hi, I'm a huge fan of Awesome Vim and not sure if this an issue to report here or another plugin created this but please bear with me :)

After installing and tweaking my config based on the README , I have this strange behavior where in normal or visual mode text seems fine and not spaces are found in the start of each line iTerm2_2024-02-05 15-39-17@2x

but when I try to select a block with the mouse, I get this strange extra space in the starting of each line Teampaper Snap_2024-02-05 15-39-31@2x

which is of course kept while pasting to another application, for example in sublime Sublime Text_2024-02-05 15-39-50@2x

For various reasons this is creating issues and was wondering if anyone else is experiencing this or if any plugin created this kind of issue.

Thanks for the patience and help in advance

sjoblomj commented 7 months ago

Yes, this seems to be the standard configuration. I assume it's in order to make it a little nicer in the editor.

You can disable this by putting set foldcolumn=0 in your my_configs.vim file.

roupasz commented 7 months ago

Thanks a lot, this was driving me crazy! Adding this option fixed the issue , thanks for taking the time to respond kind stranger