On Wed, 18 May 2011, sinbad wrote:

On May 19, 8:57 am, sinbad wrote:
On May 19, 7:15 am, Tim Chase wrote:

On 05/18/2011 08:58 PM, sinbad wrote:

to avoid this i've been thinking if i can make the shift and ctrl keys sticky it might help to reduce the pain

Usually sticky-keys are an accessibility feature of your OS. Since Vim doesn't see the individual shift/ctrl keypress (but rather just sees the combined key-code, e.g. "control+R"), it doesn't have a way to detect these modifiers.

With further info about your OS (and if Linux/BSD, what sort of desktop environment), it would be easier to guide you to an appropriate setting.

-tim

i am running on windows vista. but actually i use vim in linux environment.
i telnet to the linux server using putty. that' where i work.
it's sad to hear that vim can't listen to individual ctrl shift key hits.

It's not sad. It's unnecessary. <ctrl> doesn't do anything in Vim, so Vim doesn't need to listen for <ctrl> pressed by itself.

Windows Vista should have plenty of support for sticky keys. Just holding down <shift> for 8 or more seconds should bring up a prompt asking about accessibility options. If that doesn't work (usually because the prompt was disabled in the past), just google:

Windows Vista sticky keys

And you'll get a large list of instructions. The first suggests that pressing the Windows logo key <Win> and <u> at the same time will bring up the "Ease of Access Center". There, you should be able to adjust keyboard settings, including "Sticky Keys".


btw, i use vim inside a gnu screen session, if that matters.

The above instructions (either just holding <shift> or the "Ease of Access Center") should work for any application at all under Windows. With the exception of games and applications that hide their keyboard shortcuts or menus until you hold <alt>, most programs (under most OS'es) don't listen for so-called "modifier keys" on their own.

--
Best,
Ben

--
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

Reply via email to