Discussion:
[iterm2-discuss] How to detect if vim is running on iTerm?
Tiga Wu
2018-08-09 09:55:09 UTC
Permalink
Mainly because I'm having trouble mapping scroll events on iTerm (it
doesn't override the default scrolling behavior which is scroll the whole
page 3 lines up / down), so I did a workaround of mapping up and down keys
vim sends to vim and disabled the option to send scroll behaviors in
profiles. So how can I detect vim is running on iTerm?
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
George Nachman
2018-08-10 21:16:04 UTC
Permalink
I don't quite understand what you're trying to do, but you can check the
environment variable TERM_PROGRAM to determine whether it's iTerm.app or
Terminal.app.
Post by Tiga Wu
Mainly because I'm having trouble mapping scroll events on iTerm (it
doesn't override the default scrolling behavior which is scroll the whole
page 3 lines up / down), so I did a workaround of mapping up and down keys
vim sends to vim and disabled the option to send scroll behaviors in
profiles. So how can I detect vim is running on iTerm?
--
You received this message because you are subscribed to the Google Groups
"iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tiga Wu
2018-08-26 17:24:14 UTC
Permalink
Thank you, that totally works. I'm just trying to create different vim
profiles & settings on different terminal emulators since all of them are
different.
Post by George Nachman
I don't quite understand what you're trying to do, but you can check the
environment variable TERM_PROGRAM to determine whether it's iTerm.app or
Terminal.app.
Post by Tiga Wu
Mainly because I'm having trouble mapping scroll events on iTerm (it
doesn't override the default scrolling behavior which is scroll the whole
page 3 lines up / down), so I did a workaround of mapping up and down keys
vim sends to vim and disabled the option to send scroll behaviors in
profiles. So how can I detect vim is running on iTerm?
--
You received this message because you are subscribed to the Google Groups
"iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tiga Wu
2018-08-26 17:25:23 UTC
Permalink
Thank you, that totally works. I'm just trying to create different vim
profiles & settings on different terminal emulators since all of them have
different behaviors.
Post by George Nachman
I don't quite understand what you're trying to do, but you can check the
environment variable TERM_PROGRAM to determine whether it's iTerm.app or
Terminal.app.
Post by Tiga Wu
Mainly because I'm having trouble mapping scroll events on iTerm (it
doesn't override the default scrolling behavior which is scroll the whole
page 3 lines up / down), so I did a workaround of mapping up and down keys
vim sends to vim and disabled the option to send scroll behaviors in
profiles. So how can I detect vim is running on iTerm?
--
You received this message because you are subscribed to the Google Groups
"iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...