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

Re: "/bin/bash: ls: command not found" - external commands don't work

Expand Messages
  • Ted Pavlic
    Blame it on OS X, not on Vim. Meanwhile, go into your MacVim preferences and check Launch vim processes in login shell . --Ted ... -- Ted Pavlic
    Message 1 of 3 , Aug 3, 2008
    • 0 Attachment
      Blame it on OS X, not on Vim.

      Meanwhile, go into your MacVim preferences and check "Launch vim
      processes in login shell".

      --Ted

      703designs wrote:
      > If I try to execute any shell command through MacVim in the "!command"
      > form, I get an error message similar to the following:
      > :!ls
      > /bin/bash: ls: command not found
      >
      > shell returned 127
      >
      > Why is this? External commands work fine in Vim from the terminal.
      > When I provide the absolute path to a command, however, it works fine.
      > This makes me think that Bash, when in MacVim, isn't loading a $PATH.
      > Any ideas for fixes? Vim loses quite a few abilities when you remove
      > external command support.
      > >
      >

      --
      Ted Pavlic <ted@...>

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • 703designs
      Worked! Thanks so much, now I can go back to using Vim for my Python and PHP coding (I ve been stuck in TextMate for a month). ...
      Message 2 of 3 , Aug 3, 2008
      • 0 Attachment
        Worked! Thanks so much, now I can go back to using Vim for my Python
        and PHP coding (I've been stuck in TextMate for a month).

        On Aug 3, 10:25 am, Ted Pavlic <t...@...> wrote:
        > Blame it on OS X, not on Vim.
        >
        > Meanwhile, go into your MacVim preferences and check "Launch vim
        > processes in login shell".
        >
        > --Ted
        >
        > 703designs wrote:
        > > If I try to execute any shell command through MacVim in the "!command"
        > > form, I get an error message similar to the following:
        > > :!ls
        > > /bin/bash: ls: command not found
        >
        > > shell returned 127
        >
        > > Why is this? External commands work fine in Vim from the terminal.
        > > When I provide the absolute path to a command, however, it works fine.
        > > This makes me think that Bash, when in MacVim, isn't loading a $PATH.
        > > Any ideas for fixes? Vim loses quite a few abilities when you remove
        > > external command support.
        >
        > --
        > Ted Pavlic <t...@...>
        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      Your message has been successfully submitted and would be delivered to recipients shortly.