Friday, September 21, 2012

Re: [mszamot@gmail.com: Re: a small plugin for :call system() in vim]

On 22/09/12 01:45, Marc Weber wrote:
> Excerpts from Marcin Szamotulski's message of Sat Sep 22 01:25:25 +0200 2012:
>> In terminal vim "!..." jumps back and forth to the terminal. I prefer to
>> stay inside vim. One of the reasons is quite trivial: I use different
>> background color in vim (a dark one) and terminal (rather light). And
>> there is a small delay time when eyes adjust to another contrast.
> Well - at least you should update your documentation and tell people why
> you're using such a workaround.
>
> I'm not sure whether your code is worth a plugin. Eventually a tip on
> the wiki is equally fine.
>
> An alternative could be setting an env var in Vim and making your shell
> set a background color in the terminal when run from within vim (env var
> is set)
>
> If you wan to add history and the like - then you may want to have a
> look at additional plugins such as
> [Conque Shell plugin](http://code.google.com/p/conque)
> [vimproc plugin](http://github.com/Shougo/vimproc/tree/master/doc/)
>
> Then you may have bash history and the like - but no more vi keys.
>
> vim-addon-async is yet another simple buffer view of shell commands
> also implementing a minimal history.
> github.com/MarcWeber/vim-addon-views is a way to view shell command
> outputs in vim buffers supporting refreshing by :e! and the like.
>
> Marc Weber
>

To each his taste. I use different colours in the konsole terminal
(black on pale yellow) and in Vim (as close as I can as in gvim, i.e.
black on white for Normal text and, of course, various colours for
syntax highlights) but I don't prefer to stay inside Vim. Typing :shell
or :!man foobar (etc.) make the colours change, telling me I'm back "in
the terminal", and it's a fully-featured terminal, not the "dumb"
teletype-like terminal :shell gives me in gvim.

This is not to say that Martin's request would be invalid: it probably
isn't; it's just that I prefer it otherwise, and indeed AFAIK even
implementing Martin's proposal wouldn't force me to change my ways, thus
making us both happy.


Best regards,
Tony.
--
If the code and the comments disagree, then both are probably wrong.
-- Norm Schryer

--
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: