chrisbra / Recover.vim

A Plugin to show a diff, whenever recovering a buffer
http://www.vim.org/scripts/script.php?script_id=3068
248 stars 25 forks source link

wincmd and \n does not work for me #19

Closed vlmarek closed 11 years ago

vlmarek commented 11 years ago

Hi,

I tried your plugin and I'm thrilled! I found small glitch though. When I recover a file, I can see in the command line this text with cursor waiting for input at the end.

:wincmd l:0

'feedkeys' help says: feedkeys("") simulates pressing of the key

Changing for example feedkeys(":wincmd l\n", 't') into feedkeys(":wincmd l", 't') fixes the issue for me. There is a lot of feedkeys through the plugin and for example the ones DiffRecoveredFileOld seems to work fine to me. But it seems that it won't do any harm fixing all of those according to documentation.

Thank you __ Vlad

chrisbra commented 11 years ago

What operating system are you using and what Vim version?

chrisbra commented 11 years ago

I think, you need to use feedkeys("...)" (note the backspace). I have just updated the plugin. See, if this works for you.

vlmarek commented 11 years ago

Haha, the markup language used on github has bitten us both :) In my example I used \<CR> and so probably did you. Markup has eaten the backslash I guess. Anyway your change fixed the issue for me.

Thank you!

Vlad