vimwiki icon indicating copy to clipboard operation
vimwiki copied to clipboard

Vimwiki disables vim-surround's custom key binding

Open strogiyotec opened this issue 5 years ago • 1 comments

Good day, thank you for this awesome plugin. I have a problem with custom mappings for vim-surround plugin. I do use markdown syntax for vimwiki files. Here is my config

let g:vimwiki_list = [{'path': '~/vimwiki','syntax': 'markdown', 'ext': '.md'}]

And this is my custom binding for vim-surround

 let b:surround_{char2nr('*')} = "**\r**"

The idea is : when I press ysiw* then this word is surrounded by double starts(*) , it works when I open any file, however as soon as open any vimwiki's file (by typing \ww) then this combination just add single * character around the word. I checked bindings with :hekp vimwiki mappings it seems like there is no mapping that conflicts with vim-surround. How can I fix this problem ?

strogiyotec avatar May 06 '20 18:05 strogiyotec

Well, This is a very hard issue. Apparently a vimwiki bug linked to automating. Sorry to tell you that it may not be solved soon. At least I don't know how to fix it.

tinmarino avatar May 12 '20 02:05 tinmarino