1835529 Members
3211 Online
110078 Solutions
New Discussion

Vi Editor

 
Patricia_2
Occasional Advisor

Vi Editor

Hi ALL,

I'm actually using nfs to mount one of the file system call /kul from server kulser ( my current server call pjser). After mounting i try to vi one of the file (file name is kulpro.c) from /kul but unfortunely error messages of "NFS server server not responding still trying" prompt out.

I found out that there is not cause by the size because i able to vi other file from /kul where file size is actually greater than kulpro.c

I notice that some of the line in kulpro.c file having space at the end of the line.
Example: C RTL definitions_ ( _ indicate space )

After i global change using command -->
/$/s/ //g in kulpro.c in kulser server and i able to vi kulpro.c in my current server.

How do i overcome this problem?
It is not practical. My current server should allow space at the end of line when file been vi.

Could it be cause by the rpc setting ?

Please advise.

Thanks in advance.

Regards,
Pat
1 REPLY 1
CHRIS_ANORUO
Honored Contributor

Re: Vi Editor

Patricia, why don't you use command file (filename) to check the type of file before changing the file? Most character files end with a .c
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.