Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-19 Thread Erik Christiansen
On 18.06.12 22:42, ping wrote: no luch trying this in windows/dygwin... turn to some xwin issue (complaining no DISPLAY or something..) will give up on this win crap.. That's probably the surest way to avoid most difficulties, but I understand that you're sharing the computer, and avoiding

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread skeept
experts: this might be an old topic...but surprisingly I don#39;t get a good answer from google easily... in my work I use linux and I already swapped the esc/caps with xmodmap, so I don#39;t have issue to do it for the whole computer (not just for vim). but from time to time I need

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread ping
thanks! I don' know autohotkey... to what file I need to put these lines in? If you can use autohotkey paste this into your autohotkey script, it will only replace caps lock for esc in vim and a few other apps: ; use shift+capslock for the default capslock +Capslock::Capslock #IfWinActive,

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread ping
no luch trying this in windows/dygwin... turn to some xwin issue (complaining no DISPLAY or something..) will give up on this win crap.. 于 2012/6/17 3:30, Erik Christiansen 写道: On 17.06.12 11:25, ping song wrote: On Sun, Jun 17, 2012 at 10:18 AM, ping song songpingem...@gmail.com wrote: I

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread ping
于 2012/6/18 9:59, skeept 写道: #IfWinActive, ahk_class Vim *CapsLock::Esc I finally installed an autohotkey and add following line: Capslock::Esc in C:\Users\ping\Documents\AutoHotkey.ahk according to: http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows -- You received this message

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-17 Thread Erik Christiansen
On 17.06.12 11:25, ping song wrote: On Sun, Jun 17, 2012 at 10:18 AM, ping song songpingem...@gmail.com wrote: I don't want to affact other users/apps since this is not just my PC... what's the best practice so far to just swap the 2 keys for VIM? or at least, change caps to esc. most/all

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-16 Thread ping song
On Sun, Jun 17, 2012 at 10:18 AM, ping song songpingem...@gmail.com wrote: experts: this might be an old topic...but surprisingly I don't get a good answer from google easily... in my work I use linux and I already swapped the esc/caps with xmodmap, so I don't have issue to do it for the

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-16 Thread Tony Mechelynck
On 17/06/12 05:25, ping song wrote: On Sun, Jun 17, 2012 at 10:18 AM, ping song songpingem...@gmail.com mailto:songpingem...@gmail.com wrote: experts: this might be an old topic...but surprisingly I don't get a good answer from google easily... in my work I use linux and I