fiatjaf / neuron.vim

📝 Manage your Zettelkasten in {n}vim.
MIT License
83 stars 21 forks source link

<C-U> in <Plug> mappings breaking things #64

Open nathanbraun opened 3 years ago

nathanbraun commented 3 years ago

Hi there, I have : remapped to q:i, in order to view my entire command history anytime I enter command mode (see: https://vim.fandom.com/wiki/Using_command-line_history)

But now when I try to use any of the mappings in neuron.vim, the before every mapping deletes my current command line and merges it with the one before it. This means it'll call something like:

xacall neuron#edit_zettel_new()

Because xa was the command I entered previously. I might fork the plugin and just remove the mappings in plugin/neuron.vim but was wondering if there was a more general solution. I haven't run into this before. I was able to find this re: why some mappings include C-U but it's unclear to me if they're necessary here:

https://stackoverflow.com/questions/13830874/why-do-some-vim-mappings-include-c-u-after-a-colon

Thanks for the great work!