Skip to content

wincmd and \n does not work for me #19

Closed
vlmarek opened this Issue Feb 17, 2013 · 3 comments

2 participants

@vlmarek
vlmarek commented Feb 17, 2013

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("<CR>") simulates pressing of the key

Changing for example feedkeys(":wincmd l\n", 't') into feedkeys(":wincmd l<CR>", '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
Owner

What operating system are you using and what Vim version?

@chrisbra
Owner

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

@vlmarek
vlmarek commented Feb 17, 2013

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

@vlmarek vlmarek closed this Feb 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.