michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
557 stars 73 forks source link

Unable to follow any links. #61

Closed 1xch closed 4 years ago

1xch commented 4 years ago

After resolving https://github.com/vimwiki/vimwiki/issues/987 I'm bringing this here. I cannot follow links when this plugin is enabled, but when I removed it the ability to follow links returned.

I'm somewhat clueless to speculate, but its happening.

michal-h21 commented 4 years ago

Your configuration works for me. Can you post your full .vimrc? One thing you can also try to disable default vim-zettel mappings using: let g:zettel_default_mappings = 0. Just to try if the link following works.

1xch commented 4 years ago

@michal-h21, it still occurs or rather link following does not occur even following above

My rc files I don't have up, but they follow the form of https://github.com/Shougo/shougo-s-github/tree/master/vim, but modified for my use. My rc is essentially unchanged since june/july when I was able to install vimwiki/vim-zettel with no issues, however there was an OS change (Lubuntu 19.10 -> 20.04). If I am the only person reporting this, it is curious and local to me I suppose. But it is consistent.

michal-h21 commented 4 years ago

I've tried your configuration on another machine. Following links with enter now doesn't work, but it works with mapleader + enter, as is configured with:

 nmap <Leader><CR> <Plug>VimwikiFollowLink

Enter works for the navigation when I remove this line.

1xch commented 4 years ago

Well its the classic case of 'doesn't work for me' and I am unable to determine whats between here and there that might be conflicting. Enabling this plugin prevents me from following links, let me put up my exact dotfiles for this and see what you get.

michal-h21 commented 4 years ago

@1xch sure, I think I will need to consult your exact setup to find the source of the issue.

michal-h21 commented 4 years ago

It was a bit harder to identify the issue, as I am not familiar with Dein. I've found that it installs all plugins in one directory, where ftplugin/vimwiki.vim from vim-zettel overwrote file with the same name from Vimwiki. This doesn't happen with Vundle and similar plugin managers that keep plugins in their directories. I am surprised that this issue wasn't reported earlier.

Anyway, I've moved ftplugin/vimwiki.vim to ftplugin/vimwiki/zettel.vim and it seems to work correctly now.

1xch commented 4 years ago

That fixes it, from my perspective, for now, in the simplest case. tyvm