Steve Talley
2002-04-05 00:38:44 UTC
Hi there,
Why doesn't vim -r work anymore:
% ls -l ~/swap
total 234
drwxrwxrwx 2 st34448 staff 10240 Apr 4 15:39 ./
drwxr-xr-x 40 st34448 staff 2048 Apr 4 15:39 ../
-rw------- 1 st34448 staff 36864 Apr 3 14:42 .function.swp
-rw------- 1 st34448 staff 16384 Apr 4 15:34 out.swp
-rw------- 1 st34448 staff 16384 Apr 2 11:43 putback.txt.swp
-rw------- 1 st34448 staff 12288 Apr 3 14:26 setup.txt.swp
-rw------- 1 st34448 staff 12288 Apr 2 16:53 smc.txt.swp
% vim -r
Swap files found:
In directory ~/swap:
-- none --
Also, if I try to edit one of the files above (the original, not the
swap file), I get:
% cd ~/.zsh
% vi .function
E325: ATTENTION
Found a swap file by the name "~/swap/.function.swp"
owned by: st34448 dated: Wed Apr 3 14:42:02 2002
file name: ~st34448/.zsh/.function
modified: no
user name: st34448 host name: thpppt
process ID: 18833
While opening file ".function"
dated: Thu Apr 4 15:33:55 2002
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r .function"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/home/st34448/swap/.function.swp"
to avoid this message.
Swap file "~/swap/.function.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (D)elete it:
When I hit "R" for recover, I get:
E305: No swap file found for .function
This doesn't appear to be a permission problem. This worked in vim
5.x but hasn't worked in 6.0 or 6.1.
Output of vim --version:
VIM - Vi IMproved 6.1 (2002 Mar 24, compiled Apr 4 2002 15:06:11)
Compiled by ***@aspen
Normal version with GTK GUI. Features included (+) or not (-):
+autocmd -balloon_eval +browse +builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv -cscope +dialog_con_gui +diff +digraphs -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 -osfiletype +path_extra
-perl +postscript +printer -python +quickfix -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
+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: "/home/st34448/dist/SunOS/sparc/5.6/pkgs/vim-6.1/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/home/st34448/dist/SunOS/sparc/5.6/pkgs/gtk+/include -I/home/st34448/dist/SunOS/sparc/5.6/pkgs/glib-1.2.8/lib/glib/include -I/home/st34448/dist/SunOS/sparc/5.6/pkgs/glib-1.2.8/include -I/usr/openwin/include -I/usr/local/include -g -O2 -I/usr/openwin/include
Linking: gcc -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/lib -o vim -L/home/st34448/dist/SunOS/sparc/5.6/pkgs/gtk+/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -L/home/st34448/dist/SunOS/sparc/5.6/pkgs/glib-1.2.8/lib -lgmodule -lglib -ldl -lXext -lm -lXt -lX11 -ltermlib -ldl
Thanks,
Steve
Why doesn't vim -r work anymore:
% ls -l ~/swap
total 234
drwxrwxrwx 2 st34448 staff 10240 Apr 4 15:39 ./
drwxr-xr-x 40 st34448 staff 2048 Apr 4 15:39 ../
-rw------- 1 st34448 staff 36864 Apr 3 14:42 .function.swp
-rw------- 1 st34448 staff 16384 Apr 4 15:34 out.swp
-rw------- 1 st34448 staff 16384 Apr 2 11:43 putback.txt.swp
-rw------- 1 st34448 staff 12288 Apr 3 14:26 setup.txt.swp
-rw------- 1 st34448 staff 12288 Apr 2 16:53 smc.txt.swp
% vim -r
Swap files found:
In directory ~/swap:
-- none --
Also, if I try to edit one of the files above (the original, not the
swap file), I get:
% cd ~/.zsh
% vi .function
E325: ATTENTION
Found a swap file by the name "~/swap/.function.swp"
owned by: st34448 dated: Wed Apr 3 14:42:02 2002
file name: ~st34448/.zsh/.function
modified: no
user name: st34448 host name: thpppt
process ID: 18833
While opening file ".function"
dated: Thu Apr 4 15:33:55 2002
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r .function"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/home/st34448/swap/.function.swp"
to avoid this message.
Swap file "~/swap/.function.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (D)elete it:
When I hit "R" for recover, I get:
E305: No swap file found for .function
This doesn't appear to be a permission problem. This worked in vim
5.x but hasn't worked in 6.0 or 6.1.
Output of vim --version:
VIM - Vi IMproved 6.1 (2002 Mar 24, compiled Apr 4 2002 15:06:11)
Compiled by ***@aspen
Normal version with GTK GUI. Features included (+) or not (-):
+autocmd -balloon_eval +browse +builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv -cscope +dialog_con_gui +diff +digraphs -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 -osfiletype +path_extra
-perl +postscript +printer -python +quickfix -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
+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: "/home/st34448/dist/SunOS/sparc/5.6/pkgs/vim-6.1/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/home/st34448/dist/SunOS/sparc/5.6/pkgs/gtk+/include -I/home/st34448/dist/SunOS/sparc/5.6/pkgs/glib-1.2.8/lib/glib/include -I/home/st34448/dist/SunOS/sparc/5.6/pkgs/glib-1.2.8/include -I/usr/openwin/include -I/usr/local/include -g -O2 -I/usr/openwin/include
Linking: gcc -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/lib -o vim -L/home/st34448/dist/SunOS/sparc/5.6/pkgs/gtk+/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -L/home/st34448/dist/SunOS/sparc/5.6/pkgs/glib-1.2.8/lib -lgmodule -lglib -ldl -lXext -lm -lXt -lX11 -ltermlib -ldl
Thanks,
Steve