mbert / elvis

The elvis vi-clone (written by Steve Kirkendall)
http://elvis.the-little-red-haired-girl.org
Other
117 stars 26 forks source link

Elvis works strangely in tmux. #15

Closed ryanpcmcquen closed 8 years ago

ryanpcmcquen commented 8 years ago

Elvis does not display the entire file, I have to scroll through the file to display it line-by-line, this becomes extra confusing when you switch from downward to upward movement, a screenshot probably helps:

screenshot_2015-12-30_16 11 34 522

mbert commented 8 years ago

Looks like a TERM problem. On Unix systems, Elvis uses the system's termcap interface. If your TERM environment variable points to something that is broken, Elvis will not work properly. You might get away by setting TERM to some other value.

Elvis' termcap code is rather old and well-tested. I tend to believe that this problem is caused by system setup rather than by a bug in Elvis.

ryanpcmcquen commented 8 years ago

Nice, got around it with this:

https://github.com/ryanpcmcquen/linuxTweaks/blob/master/slackware/normal/.bash_profile#L59-L62

## fix elvis in tmux
alias elvis='TERM=xterm elvis'
alias vi='TERM=xterm elvis'
alias ex='TERM=xterm elvis'