On Dec 22, 2006, at 7:18 PM, striker wrote:

What specific command are you using as <cmd>?

I started out wanting to use a shell script that I wrote, but the problem occurs with the basic commands: ls, pwd.

What version of OS X do you have? The first couple of OS X versions used the tsch shelll. The most current versions use bash.

10.4.8
I use the following in my .vimrc:
" make sure Vim uses the bash shell
set shell=bash

I just checked and shell os set to /bin/bash which is the shell I want to use. The version of Vim is the download from the macvim site. About two months ago

Thanks.  Hal

Kevin
On Dec 22, 2006, at 3:18 PM, Hal wrote:

Using Vim 7 on OS X, my command line use of shell commands works properly, but when I use ':r !<cmd>' to read the output of a shell command into a file, I consistently get the following error.

/bin/bash error on line 1
shell returned 1
E485 Can't read file /tmp/........

I'm pretty sure I've had this work on prior uses of Vim and am guessing a setting is wrong, but I don't know which. Any suggestions?

TIA,  Hal



Reply via email to