Tuesday, October 20, 2015

Re: Problem using vim in csh on linux

On 2015-10-20 07:26, Lowell Specht wrote:
> I'm new to linux. I have used unix for decades. We are moving to
> redhat linux servers at work and I'm trying to use vi but have a
> problem with the vi window refresh. When the file first opens, all
> looks good. As I page back and forth, the file starts to look
> corrupted but is really just that the window is not fully
> refreshed, I think.
>
> I tried vim with the same result as vi though I think when I launch
> vi, it is aliased to vim. My default shell is csh. Today, on a
> whim, I switched my current shell to ksh and tried vi/vim and it
> works perfectly.
>
> How can I get vi/vim to work properly in csh on linux?
> Please, no responses telling me to use ksh, instead of csh or a
> different editor unless it is just vi by another name. Thanks.

While I don't have any immediate familiarity with any such issue, a
bit of extra knowledge might help track things down:

- does your value of $TERM change depending on whether you're in csh
or ksh? What is your setting/value for $TERM? How does ":set
termresponse?" compare between working and non-working sessions?

- what is your terminal? Is it a (non-X)console, serial line,
SSH/telnet connection, or X terminal (and if so, which one? xterm,
rxvt, gnome-terminal, etc)? Are you using GNU screen or tmux?

- does hitting ^L (or using ":redraw") properly repaint the window
when you get corruption?

- do you notice it more with certain file-types?

- have you checked that the same binary is being run in both cases? A
difference in $PATH might cause different versions to be run
depending on your shell's initializations. The output of "which vim"
(or "which vi" if you invoke it like I do) within csh and ksh might
highlight differences. Also, any apropos aliases would help.

There might be other useful information, but the above might guide us
towards a better suggestion.

And if your screen/$TERM gets corrupted, there's always ed(1) ;-)

-tim







--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: