2
I have mapped a key in Vim to run curl
-based tests on my API with :map ,t :w\|:!quizzical tests.sh <CR>
. The tests run as expected when I press the key; however, the tests which take longer to finish are said to have failed. These same tests repeatedly pass when in a normal shell. Is it possible that Vim is enforcing a stricter timeout-limit?
The shell invoked by Vim to run commands does not usually source its rc file (e.g., ~/.bashrc for bash), so it won't see any aliases, functions, or non-exported variables. I don't know why that would affect curl. – garyjohn – 2013-10-12T05:53:46.243
@garyjohn Interesting. Have you seen this in official documentation or did you notice by experience? If the former, could you point me in the right direction for this sort of information? – matt3141 – 2013-10-12T06:57:02.960
@matt3141, see
:help 'shell'
and$ man bash
. – romainl – 2013-10-12T07:04:20.287