running things in the background

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

running things in the background

Benjamin Young
hello, all,

I've looked around a fair bit and haven't found any reference to this
particular problem - but maybe i didn't look in the right places.

I would like to spawn an xterm (say) from vim and have it run in the
background.  Typing

:!xterm

invokes an xterm, but of course vim waits for the xterm to close before
letting me do any more editing.  If, as suggested in the manual, I type

:!xterm &

then I get no xterm -- just the usual "Hit Enter or type command to
continue".  The problem is not specific to xterm.  Also, typing "xterm
&" in the shell exhibits the correct behaviour.

Appreciate any input.  Thanks in advance,

ben young

--------------
Version info follows.

I am using Mac OS 10.3, with the Fink distribution of vim 6.3 build 3.
$SHELL is bash.  The output of vim --version is:

VIM - Vi IMproved 6.3 (2004 June 7, compiled Jul 24 2004 14:24:13)
Compiled by [hidden email]
Big version with GTK2 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 +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 +netbeans_intg
-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 +xsmp_interact +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: "/sw/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/usr/X11R6/include
-I/sw/include/atk-1.0 -I/sw/include/pango-1.0
-I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0
-I/sw/lib/glib-2.0/include   -I/sw/include  -g -O2  -I/usr/X11R6/include

Linking: gcc  -L/usr/X11R6/lib   -L/sw/lib -L/usr/local/lib -o vim
-L/sw/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -lXt -lX11 -lSM -lICE -lncurses  -liconv