Sunday, July 31, 2011

Re: sh vs bash syntax coloring

> > By the way I have another question concerning shell and vim.
> > I'm using zsh as interactive shell (because of completion possibilities)
> > but I prefer bash/sh to write scripts.
> >
> > So when I type
> >
> > :!shell_command
> >
> > I would prefer it was seen as bash code by vim
> > and when I type
> >
> > :sh
> >
> > I would prefer vim opens zsh as interactive shell.
> >
> > I know I can do
> >
> > :set sh=bash
> >
> > but it changes shell in both case.

On 31/07 18:25, ZyX wrote:

> Use <C-z> in normal mode instead. It won't launch anything, it will instead
> suspend vim so that you will see shell you opened vim from. Obviously,
> set shell=bash
> won't have any affect on shell that is already launched.

Yes indeed it's a solution. With also one drawback :-( :
I often launch vim, with xterm -e vim, and in this case I cannot use
<c-z>.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment