aymericbeaumet / vim-symlink

:running: Automagically follow symlinks
MIT License
74 stars 10 forks source link

Avoid leveraging vim recursion #7

Closed aymericbeaumet closed 3 years ago

aymericbeaumet commented 4 years ago

Leveraging Vim autocmd recursion and a:filepath sometimes caused issues (infinite recursion).

This PR implements an iterative resolve/expand algorithm. We still need to have nested so that the other autocommands trigger when we edit the final filepath (otherwise you would for example be missing syntax hightlighting).