On Mar 12, 2009, at 2:58 AM, Ben Schmidt wrote:
>> recover use of some terminal keys for vim
>>
>> The terminal apps I use:
>> MacOS 10.4.11 -- Terminal.app
>> Linux -- rxvt
>> intercept some control keys, such as:
>>
>> 0x03 ^C intr
>> 0x0F ^O discard ("flush" on Linux)
>> 0x11 ^Q start
>> 0x13 ^S stop
>> 0x1A ^Z susp (%% to resume)
>> 0x1C ^\ quit
>
> I never had any problems except with ^Q and ^S and fixed it by just
> doing
>
> stty -ixon
> vim
> stty ixon
>
> ^C, ^Z and ^\ all send signals, but Vim catches them and handles them
> properly anyway in my experience.
>
> I have this little function in my .bashrc to do it automatically
> for vim:
>
> vim() {
> if [ -t 0 ] ; then stty -ixon ; fi
> command vim "$@"
> if [ -t 0 ] ; then stty ixon ; fi
> }
>
> I'm mostly on Mac OS X 10.4.11.
You are correct, only ^Q and ^S for vim, my mistake, I copied a
myself about another app that does not catch the other keys.
Thank you for the vim() function, it works great.
I will adapt it for the other app.
--
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---