1

Re: ViEmu and AutoHotKey fun together.

Using up down keys for intellisense and other navigation is really annoing thing.
Now, when CapsLock on you can use

j - down
k - up
u - Esc
i - Enter

install autohotkey and use this script

Capslock::
    UpdateCapslock()
return

UpdateCapslock()
{
    If GetKeyState("Capslock", "T") = 0
    {
        SetCapsLockState, on
        Gui, +ToolWindow
        Gui, Show, x-1 w1 +NoActivate, CapslockVim
    }
    Else   
    {
        SetCapsLockState, off
        Gui, Destroy
    }
}

#IfWinExist, CapslockVim
j::Down
k::Up
i::Enter
u::
    Send {Esc}
    UpdateCapslock()
return

#IfWinExist,

2

Re: ViEmu and AutoHotKey fun together.

Ais, thanks so much for posting your tip. Here is a link to AutoHotKey just for completeness' sake:

  http://www.autohotkey.com/

Thanks!

  - Jon

3

Re: ViEmu and AutoHotKey fun together.

Ais,
I have a different solution, inspired by Jean-Paul Boodhoo's post here: http://blog.jpboodhoo.com/VSViEmuReSharperModdedWithAutoHotkey.aspx

I map alt-hjkl to the arrow keys (also ctrl-alt-hjkl to ctrl-arrow_key, shift-alt-hjkl to shift-arrow_key). This gives me a little bit of vim everywhere, which is nice.

I haven't found any downsides yet, except that I can't use it to navigate windows menus (alt closes them).

4

Re: ViEmu and AutoHotKey fun together.

I use Ctrl-P for up and Ctrl-N for down.  Isn't that how vim handles autocomplete navigation?

#IfWinActive, ahk_class wndclass_desked_gsk
^n::
Send {Down}
return

^p::
Send {Up}
return

5

Re: ViEmu and AutoHotKey fun together.

Mphafner, indeed, those are vim's filescan-autocomplete keys for insert mode. I use those shortcuts in the command line, but not in your style:

:cnoremap <c-p> <up>
:cnoremap <c-n> <down>

I may have to give a try to AutoHotKey one of these days.