sftp.conf had ascii mangling commented out. I uncommented it and answered NO; and restarted the daemon, which probably amounted to the mangling directives being commented out.
This appears to be a gVim problem, because command line ftp from one system does not cause the file type to be altered. Thanks again. On Wednesday, July 24, 2013 3:02:05 PM UTC-4, Tim Chase wrote: > On 2013-07-24 11:09, octopusgrabbus wrote: > > > I am using gVim version version 7.2.411 to remotely edit files on > > > a Linux system from a Linux system. I have set > > > > > > fileformats=unix,dos > > > > > > in .vimrc as well as well as > > > > > > filetype plugin indent on > > > > > > The file reads in as Unix file format using > > > > > > :e ftp://user@system//home/csm/csmdev/recpt_rpt.4gl > > > > > > When I :w the file and then read it back in :e!, the format has > > > changed to DOS file format. > > > > > > What can I do to correct this problem? > > > > A couple ideas occur to me: > > > > 1) you have some plugin that is changing the 'ff' setting. I'd check > > what ":set ff?" to see what vim thinks the file should be written as. > > > > 2) you should be able to force writing as Unix format with ":w > > ++ff=unix > > > > 3) it's theoretically possible that FTP is transferring the file back > > up in ASCII rather than BIN mode. I don't mess around much with > > editing remote files, but if you write a copy of the file locally and > > it's Unix format, but becomes DOS after transferring it, I remember > > having FTP mung my newlines in the past. > > > > -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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
