I have this in my .vimrc: " Don't use fish if &shell =~# 'fish$' set
shell=bash endif
And this is my .bashrc: #!/bin/bash
/usr/local/bin/fish exit
So, if I type :shell in vim, it opens bash which opens fish. When I exit fish,
it closes bash as well. And I am back in vim. Glenn Jackman
<jack...@pythian.com> schrieb am 19:00 Dienstag, 10.Februar 2015:
This may be illustrative:
https://stackoverflow.com/questions/12230290/vim-errors-on-vim-startup-when-run-in-fish-shell
I have in my ~/.vimrc: set shell=sh
On Tue, Feb 10, 2015 at 11:25 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:
On Mon, Feb 9, 2015, at 11:17 PM, Luciano ES wrote:
> There is this command I like to run a lot:
>
> :r! sed '/pattern/\!d' /home/luc/db/info.txt
>
> It used to work fine, but now I get this error:
>
> fish: Illegal command name "(sed '/pattern/\!d' /home/luc/db/info.txt)"
> Standard input: (sed '/pattern/\!d' /home/luc/db/info.txt) >
> /tmp/v5pU4gh/0
>
> What does it mean? Why am I getting this?
I think I've figured it out. Vim is enclosing the shell command in
parentheses. In Bourne Shell the parentheses are a grouping construct
that call a subshell. In fish the parentheses have a different
incompatible meaning. Vim is depending on Bourne Shell semantics for
the external shell. See my other post for how to work around.
--
http://www.fastmail.com - Or how I learned to stop worrying and
love email again
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
--
Glenn Jackman Senior Software Developer Pythian - Love your data
jack...@pythian.com Tel: +1 613 565 8696 Ext. 1478 Mobile: +1 613 808 4984
www.pythian.com
--
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users