On Wednesday 17 December 2008 1:28 pm, Charles Campbell wrote: > > sc wrote: > > i tried upgrading to v135g, and i changed formatoptions to > > 'tco' in my .vimrc to mirror your attempt > > > > i used my 'vime' to start the session, selected a file, and > > fo was 'tco' -- fine -- i used MyExplore to find and add > > another buffer, fo was again 'tco' -- fine -- i used > > MyExplore to add two more buffers in the same way, tco was > > still the fo for each of the added buffers -- fine -- then i > > quit a buffer with my bdelete key and presto the > > formatoptions were 'nroql2' in the buffer i quit back to, > > which had previously reported 'tco', the only difference > > being now the verbose set? reports it was last set from > > ~/.vim/autoload/netrw.vim (which is where i dropped v135g) > > > > i've also reproduced this in gvim, so it appears not to be > > confined to vim > > > > if there is more information i can give you to help you > > reproduce this, please tell me -- i'd really like to see it > > fixed so i can start trusting netrw again > > > > I'd appreciate it if you would give me an exact sequence of instructions > to cause the problem, > preferably in a script form.
this does not lend itself to scripting, because the problem is created by using netrw to find new buffers to add to the buffer list, hmmm -- never say never... ok i have removed the use of 'vime' and MyExplore, they are unnecessary to recreate the problem and only make it harder to see before starting edit your .vimrc to say: set formatoptions=tcq i had to create two scripts so i knew the files to open would exist -- the first is a shell script, and needs its Xbit set: <showbug> #!/bin/bash echo 'firstfile' >> fileone echo 'secondfile' >> filetwo gvim -S showbug.vim </showbug> <showbug.vim> Explore . normal gg /fileone normal Explore . normal gg /filetwo normal bdelete set cmdheight=3 verbose set fo? </showbug.vim> save both showbug and showbug.vim to the same path -- set the execute bit for 'showbug', and run via './showbug' what you will see is 'firstfile' in 'fileone' with formatoptions displayed at the bottom with 'nroql2', regardless of your formatoption setting in your .vimrc i was trying to use cmdheight to allow the "Last set from..." to show, but it made no difference -- when the script ends there is only the setting showing and a Hit Enter prompt -- if you perform a :verbose set fo? after you hit enter you will see the "Last set by ~/.vim/autoload/netrw.vim" does this work for you? WAIT!!! when i look at this mail in my mailer, i don't see the ^Ms after the 'normal' to open each file -- there are two of them -- when i re-open to edit (in gvim of course) i see them again -- so if the ^M characters make it to you, great, if not you'll have to add them (lines 4 and 8 of showbug.vim) -- (<CR> didn't want to work here) sc --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
