Monday, November 19, 2012

Yankring problem on Debian

I am using exactly the same .vimrc and .vim/ on Slackware and on multiple Debian Squeeze 6.0.6's, and only on the Debians do I see this behaviour.

The "yt" and "vt" commands prompt me for the next character, but when I enter it, it appears I'm actually entering it in normal mode, not as the prompt input.

For example, sample text:

somemethod(arguments)

I place the cursor somewhere before the first parenthesis and type "yt(". Vim then prompts me with "YR:Enter character:". I enter "(" again, thinking it somehow missed the first time I pressed it. Vim then thinks this is the actual '(' motion command, and takes me to the beginning of the sentence. The same happens for "dt(", but not for the commands, such as "vt(", including the capitalised backwards commands, which all behave as expected, and it's not just with "(".

On my Slackware setup, both "yt(" and "dt(" behave as expected. They do change the statusline to "YR:Enter character:(", but it's just informative, not a prompt.

As well as putting "set all&" atop my .vimrc, I've recompiled one of the Debian vims a few times, with various features enabled and disabled, to see if a feature is causing it, but I don't think so, at least, it's not obvious if one is. My latest feature set that differs on Debian is:

–mouse-gpm
[no +mouse_urxvt +mouse_sgr]
–osfiletype

--

.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: