Thanks for all the feedback and suggestions!
I'll try to answer all the questions and suggestions.
What version of vim?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 11:14:07)
Included patches: 1-207, 209-629
Modified by <bugz...@redhat.com>
Compiled by <bugz...@redhat.com>
Huge version without GUI. Features included (+) or not (-):
What does $TERM look like for the non-working csh and the working ksh?
csh: TERM=xterm
ksh: TERM=xterm
How do I establish my terminal session?
terminal is Windows client app hummingbird exceed common desktop environment to logon to a HP unix server. From there, I ssh -Y to the linux server.
Does CTRL Shift L work? No.
Do I notice it more with different file types?
No. Problem appears while editing a makefile, a fortran source file and my .cshrc. I haven't spent a lot of time exploring this with other files.
Same path in both shells?
yes. which vim returns /usr/bin/vim in both shells. which vi indicates it is aliased to vim.
Minimal sequence of steps to demonstrate the problem:
1. windows client, launch hummingbird exceed CDE, login to unix server with default csh, launch an xterm, ssh -Y <linux server> in an xterm
2. vim an ascii file large enough that you can page back and forth.
3. ctrl-f and ctrl-b a few times and watch the text become garbled as the window does not fully refresh. Note that using j and k to scroll one line at time works fine (I just discovered this).
What is the output from :set termcap?
I am not familiar with this command. I tried it in both shells and got :set not found. So I tried it without the colon and got no error and no output. Just a return to the prompt.
Try, vim -N -u NONE.
I did. Same problem.
So, I hope this helps.
After typing this up, I tried Windows Client, putty terminal, ssh -Y to linux server and now vim works in csh. So it is looking like a problem with the hummingbird exceed CDE.
Here is some additional info though I believe my solution is to stop using the Hummingbird Exceed CDE to connect.
I did try the termcap suggestion in vim and got it to work. I don't know how to interpret the results though. I do have man pages for termcap so when I get some time, I'll see if I can figure out what it all means.
The garbled text I mentioned in my original post means whole characters, It's as if the window is simply not being repainted when I navigate using ctrl f and ctrl b.
Also, didn't mention this before, whenever I do a : command in vim, the command is not being repainted so the command remains at the bottom of the window and after several commands, the line becomes garbled with parts of former commands. This problem occurs in both csh and ksh.
I did try to do some editing yesterday using vim in ksh and discovered, for example, that if I delete 4 characters from a line using 4x, the characters are deleted, the remainder of the line shifts left 4 characters and the last 4 characters in the line left the original characters in place so that the last 4 chars are repeated. ex:
The rain in Spain stays mainly on the plain. <<original line
If I delete the word rain using 4x, the line becomes.
The in Spain stays mainly on the plain.ain. <<new line
This problem occurs in both ksh and csh though the original paging issue only occured in csh.
I did try putty connecting to the hp unix server and then ssh to the linux server and vim still works fine. So I don't think it is the unix server, I believe that vim is just not supported in Hummingbird Exceed CDE. It is a shame since I really like the CDE. I will be trying gnome in the near future as a replacement for the CDE and hopefully vim will work with that since gnome is bundled with linux.
Thanks for all the feedback. It has helped me to understand this issue better and moved me along my linux learning curve.