aklt / rel.vim

Vim custom links to files and resources
9 stars 3 forks source link

Fails to jump to ~/.vimrc #1

Open mcepl opened 6 years ago

mcepl commented 6 years ago

First of all, when ~/.vimrc doesn't exist (because I use ~/.vim/vimrc), Ctrl-K fails with the endless of errors:

E15: Invalid expression: l:bok && l:b >= 0 && l:line[l:b] < 256 && s:lookup[l:line[l:b]] == '1'
E684: list index out of range: 20

When I do cd && ln -sf .vim/vimrc .vimrc then there are no errors, but no movement on Ctrl-K on the first example in the help file. help:, man:, and https: links seem to work.

Using vim-X11-8.0.1416-1.0.72.el7.centos.x86_64 from RHEL-7 package on https://copr.fedorainfracloud.org/coprs/mcepl/vim8/

aklt commented 6 years ago

Thanks for this report, I will have a look at it and some of the code that needs a revamp.

mcepl commented 5 years ago

OK, so it seems to be just a problem, that the macro is not capable of working on symlinks (or non-existent files).