Bug#719510: vim: yaml syntax plugin makes vim hang with an ssh key in the yaml file
Sebastian Schmidt
yath at yath.de
Mon Aug 12 15:48:05 UTC 2013
Package: vim
Version: 2:7.4.000-1
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
I have several yaml files with ssh keys inside them. As of 2:7.4.000-1,
vim takes, depending on the size of the key, ages to load them:
$ {echo; echo; }|ssh-keygen -t rsa -b 4096 -f id_foo
Generating public/private rsa key pair.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Your identification has been saved in id_foo.
Your public key has been saved in id_foo.pub.
The key fingerprint is:
92:58:f4:6b:d4:64:cb:08:02:41:c0:36:5d:f0:a9:38 yath at moniac
The key's randomart image is:
+--[ RSA 4096]----+
|oo=++.o o |
| + ..o.o * . |
|. . o. + + |
| . .o o . |
| E .. o S |
| . o |
| |
| |
| |
+-----------------+
$ cp id_foo.pub id_foo.yaml
$ vim -u NORC -U NORC --cmd 'filetype plugin indent on' -N id_foo.yaml
:syn on => works as expected
However, when "- " is prepended to the ssh key:
$ echo "- $(cat id_foo.pub)" > id_foo.yaml
$ vim -u NORC -U NORC --cmd 'filetype plugin indent on' -N id_foo.yaml
:syn on => vim hangs
You can reproduce this even interactively; vim ~/.ssh/id_rsa.pub, :set
syn=yaml, :syn on, then prepend "- "; it will start hanging as soon as
you type the space.
Sebastian
- -- Package-specific info:
- --- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk
/usr/bin/vim is /usr/bin/vim.gtk
/usr/bin/gvim is /usr/bin/vim.gtk
- -- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages vim depends on:
ii libacl1 2.2.52-1
ii libc6 2.17-92
ii libgpm2 1.20.4-6.1
ii libselinux1 2.1.13-2
ii libtinfo5 5.9+20130608-1
ii vim-common 2:7.4.000-1
ii vim-runtime 2:7.4.000-1
vim recommends no packages.
Versions of packages vim suggests:
ii exuberant-ctags [ctags] 1:5.9~svn20110310-6
pn vim-doc <none>
pn vim-scripts <none>
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
iQIVAwUBUgkDrPhx3EthBlqjAQhKcA/9GidyNiVrbc2X4yRxVssiUsYXB03VesID
GCxq0BPRZFfIc75HzstZXCNslicDpD3n4OKlYKTICaSZJaMiH7DTI28U9yt2EUNb
H6bvjWfEXzychkV8Lse/tLGh+Y2vneJDmFvkCFJPPeqqbAiyn2H1Tmmlqfm/in+y
0qr+fF+0Lf+SNO+konTk5ga8vKnGInKaMBMNkIgODusNSJ3vBbAYHC6eEPqxzhYy
3bfe95OL78JC5dQXE8fCGigRRbi5kqbPxbHVAH0M6PYx04TGC2K7ZIMNas/wc+3F
Vacp91+tXLqPwFp9rY7si8LmQLyuu0jty3nAUpdt92aT64v8juSCggh3w/ageTeN
zfuZz1T/M7h5X3HKMFXQAu4h21n7hCh7/W//AezTWd1WI2HfrTZ2LMjqvL0e8jWl
zNTnhDDTc4vlN9jh6opZDWNUwo/kkK1J5rk3QIohRWTkUdBb37W/dQthG9RMSPct
4WRsntC6EUapexThBbHh8RdcW5YZ5oFae86lrR7kOkZHF2xGuLaKcDRprSexoC5v
a0TXCmjQMaz7pwcVb/e5S5k3uR9YSEpXDGWoYmhs9L4atYHqNxXS4326w33IFwTi
vpC93uNxMWpiDp/LTeBv8ltYvr+fjZlr0JCuCiB4BvA5wcO0qVsW5Brymhd+lLUk
HMSFnPNJiQo=
=pBE2
-----END PGP SIGNATURE-----
More information about the pkg-vim-maintainers
mailing list