Tabs mangled when copying between AppVMs

30 views
Skip to first unread message

tetra...@danwin1210.me

unread,
Oct 7, 2019, 3:53:47 AM10/7/19
to qubes...@googlegroups.com
When copying from AppVM to AppVM, tabs and/or spaces often get mangled
(additional tabs/spaces inserted).

For example, if I have a block of text in one AppVM that looks like:

def my_function():
msg = "foo"
othermsg = "bar"
print(msg + othermsg)


When I Ctrl-C (or Ctrl-Insert) and Ctrl-Shift-C this block of text, then
Ctrl-Shift-V and Shift-Insert it into an editor in another VM, it
sometimes comes out looking like:

def my_function():
msg = "foo"
othermsg = "bar"
print(msg + othermsg)

The issue does not crop up every time. Unfortunately, I haven't been
able to figure out a pattern or logic for when it occurs vs when it does
not occur.

Any suggestions for how to stop this happening?

Andrew David Wong

unread,
Oct 8, 2019, 9:26:52 PM10/8/19
to tetra...@danwin1210.me, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Are you, by any chance, copying into Vi/Vim? That sort of thing happens
when you have "smart indentation" (or similar) enabled in Vim.

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEZQ7rCYX0j3henGH1203TvDlQMDAFAl2dN0kACgkQ203TvDlQ
MDAKJw//V+f0frDGnGwgzqP/WqyIfSszGEN4gX4i5qGBbc9QJfXsWFmJahZttMAq
dariltki6uSwtGepCp6qjMYLTephaZKzLwc3aue0VJupfuDEQw3oM0GNEv9CbqOy
BX515smS5SZISUVHTXnQ18fv3GEVHeXEAWuQ1P3CZgwzUwjaaH4iTD1PI5VdVyhW
Z5J4puy4fuA9LfcCUkg2TPerPOwWc+d/JiBBecWzLFl/HV1EgIiCqumMpYkDigtD
lV+VYJS50glxjfJ5fhlqsd8zHIKTSsYviMOKkijyZ0oVJhCQvI+Ci3p0lsMkNlYl
C6FLOTZSH9Gnh4KjAdZBNcz84roqSfMMPk3FdFs0u6dy57H6FhQb7uLZ8ZzeD6st
KklDHtx9uhleqCpLwY7q2eAKqjjYjmNyDKIda9VJZ7dSrX1EVtHZmvVRB4nHA/X6
G0g6VGjb5onCJweNcArEcsioZmMtOw4vK+p7ck9/8tEd10qAzGALO5SV+uub6gjI
b9c8Io0GXNYOOmZ4PoO/la24Y+mnd2/PnIntq9VdldS4KmWUcjPrKTO0TcEnZv3A
trOnKwiU/9IyeRmqgf4ovFdJ6czKG1BysqEtTRBSU/DBwamerpjBBYhU1SBZzw65
suXGCwDXJvAYVlPHB5Swlggpm3ebWis6FpADo8+lJRs454Q/Z10=
=NQjv
-----END PGP SIGNATURE-----

tetra...@danwin1210.me

unread,
Oct 9, 2019, 6:05:27 AM10/9/19
to Andrew David Wong, qubes...@googlegroups.com
On Tue, Oct 08, 2019 at 08:26:34PM -0500, Andrew David Wong wrote:
>Are you, by any chance, copying into Vi/Vim? That sort of thing happens
>when you have "smart indentation" (or similar) enabled in Vim.

Ah, yes, that would explain it. Thanks!
Reply all
Reply to author
Forward
0 new messages