Loading ...
Sorry, an error occurred while loading the content.

3972Re: [OT] Bug or Feature?

Expand Messages
  • Andre Berger
    May 26, 2006
    • 0 Attachment
      * Benji Fisher (2006-05-27):
      > On Fri, May 26, 2006 at 07:35:54PM +0100, Chris Allen wrote:
      > > On 5/26/06, Andre Berger <andre.berger@...> wrote:
      > > >Yes. I start vim without any command line-arguments, and get a "no
      > > >name" (previously a "no file") buffer, about which I read in the
      > > >upgrade information. So far, so good. I type my text, and save it to
      > > >a file with ":w". Previous versions of Vim wrote the file and loaded
      > > >it into the initial buffer, like ":saveas" does. 7.0.17 (my huge
      > > >self-compiled version) just writes to the file, but keeps the noname
      > > >buffer. I would like to have the old behavior back. I hope it's
      > > >clearer what I mean now. I asked this here because I wasn't sure if
      > > >that's a design change, Mac related, or a local problem.
      > >
      > > Interesting. I still get that behaviour, certainly, using 7.0.17,
      > > home-built huge. I can't think of a build option or runtime option to
      > > disable that, but I certainly don't know everything. Can you give us
      > > the output of ':set'?
      >
      > When I open a new buffer and do
      >
      > :w
      >
      > I get an error message (E32). If Andre does this and gets a saved file,
      > there must be something tricky going on. When I do
      >
      > :w /tmp/helloworld.txt
      >
      > the buffer name becomes the same as the file. Curiously,

      :w /tmp/helloworld.txt
      [No Name]
      0,0-1 All 06:29 "/tmp/helloworld.txt" [New] 0L, 0C [w]

      > :messages
      >
      > now shows the message about saving the new file twice ...

      Messages maintainer: Bram Moolenaar <Bram@...>
      "/tmp/helloworld.txt" [New] 0L, 0C [w]
      "/tmp/helloworld.txt" [New] 0L, 0C [w]

      VIM - Vi IMproved 7.0 (2006 May 7, compiled May 14 2006 07:13:56)
      MacOS X (unix) version
      Included patches: 1-17
      Compiled by andre@...
      Huge version with Carbon GUI. Features included (+) or not (-):
      +arabic +autocmd -balloon_eval +browse ++builtin_terms +byte_offset +cindent
      -clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
      +cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs -dnd -ebcdic
      +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
      +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist
      +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
      +mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm
      -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
      -netbeans_intg -osfiletype +path_extra -perl +postscript +printer +profile
      -python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
      -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static
      -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar
      +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace
      +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
      -xterm_clipboard -xterm_save
      system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
      system gvimrc file: "$VIM/gvimrc"
      user gvimrc file: "$HOME/.gvimrc"
      system menu file: "$VIMRUNTIME/menu.vim"
      fall-back for $VIM: "/usr/local/etc/vim"
      f-b for $VIMRUNTIME: "/optapps/Vim.app/Contents/Resources/runtime"
      Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC -fno-common -fpascal-strings -Wall -Wno-unknown-pragmas -mdynamic-no-pic -pipe -I. -Iproto -arch ppc -DMACOS_X_UNIX -no-cpp-precomp -I/Developer/Headers/FlatCarbon -Os
      Linking: gcc -arch ppc -L/usr/local/lib -o Vim -framework Carbon -lncurses -liconv -lintl

      --- Options ---
      antialias ignorecase report=0 syntax=mail
      autoindent incsearch ruler tabstop=2
      autowrite nojoinspaces scroll=17 textwidth=69
      backupcopy=yes laststatus=2 secure ttyfast
      cpoptions=$ lazyredraw shiftwidth=2 ttyscroll=0
      expandtab linebreak shortmess=at virtualedit=block
      filetype=mail nomacatsui showbreak=\ visualbell
      foldmethod=syntax nomodeline showcmd wildmenu
      helpheight=0 modelines=1 showmatch window=35
      helplang=en modified smartcase
      hidden mouse=a splitbelow
      history=50 pastetoggle=<F8> nostartofline
      backspace=indent,eol,start
      backupdir=~/Tmp/Vim,~/Tmp,,.,~/tmp,~/
      comments=b:#,:%,fb:-,n:>,n:)
      complete=.,w,b,u,t,i,k$VIMRUNTIME/syntax/mail.vim
      directory=~/Tmp/Vim,~/Tmp,,.,~/tmp,~/
      fileencoding=utf-8
      fileencodings=ucs-bom,utf-8,default,latin1
      fileformats=unix,dos,mac
      foldtext=XMLFoldLabel()
      formatoptions=rontcql
      guifont=Monaco:h14
      highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws
      iskeyword=@,48-57,_,192-255,-,.,@-@
      listchars=tab:><b7>,trail:<b7>
      runtimepath=~/.vim,/optapps/Vim.app/Contents/Resources/vimfiles,/optapps/Vim.a
      pp/Contents/Resources/runtime,/usr/local/share/vim,/optapps/Vim.app/Contents/Res
      ources/vimfiles/after,~/.vim/after
      statusline=%<%0.57F%h%m%r%= %l,%c%V %P %{strftime("%H:%M")}
      suffixes=.bak,~,%~.swp,.o,.info,.aux,.gz,.tgz,.tar,.bz2,.log,.dvi,.bbl,.blg,.b
      rf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.ps,.swp
      termencoding=macroman
      titlestring=/private/tmp/muttng-hvk-502-3021-9774-6562e1673ebc6531 - Vim (hvk.
      local)
      viminfo=%,'1000,f1,"1000,:100,@100,/100,n~/.viminfo
      whichwrap=<,>,h,l,[,]
      wildmode=longest,list

      -Andre
    • Show all 17 messages in this topic