michal-h21 / vim-zettel

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

Trying to insert a link using "[[" results in "[<Plug>ZettelSearchMap[]" #85

Closed thorlucas closed 2 years ago

thorlucas commented 3 years ago

Hi,

Looking through the default keybindings, it seems like insert mode [[ is mapped to :ZettelSearch. Instead, this simply types the following [<Plug>ZettelSearchMap[]. I'm using nvim. There are no other bindings to [[.

The reason seems to be that I have actually mapped <Esc> to <Nop>. In order to make this work as intended, you need to implement a way to ignore user mappings.

Thanks,

leandrochiarini commented 2 years ago

This is just a matter of changing nmap,imap and xmap to their respective nnoremap, inoremap and xnoremap in line 60 of ftplugin/vimwiki/zettel.vim.