Mailing List Archive

1 2  View All
Re: Re: Vim - Buffers [ In reply to ]
On Wed 29.09 22:18, Thilo Six wrote:
> I just wondering about how to start a screen session just right on
> Xterm start. When I put screen& in ~/.bashrc I get:
>
> Must be connected to a terminal.

Well, it matters how you start it, but if for example the xterm is
started in .xinitrc, you might use the -e option from xterm. See the
manpage. My .xinitrc has a line like this:

xterm -geometry 120x66+10+40 -e /usr/bin/screen -dR &

(formerly aterm ;-))

You don't want it in .bahrc since then every started bash would execute
screen, wouldn't make sense AFAICS.

Bert

--
gentoo-user@gentoo.org mailing list
Re: Re: Vim - Buffers [ In reply to ]
On Wed 29.09 21:57, Thilo Six wrote:
> Thank very much Richard Kilgore and Bert Buchholz.

No problem. ;)

> This trick with screen und this cool statusline is just want I wanted.
>
> Now I can use Vim as I would like to.

Good to hear.

> Do have any other hints and tricks like that?

Hmm, sure, but it seems a bit unspecific, just start blabbing about the
way I configured stuff ... it wouldn't be of much help. But I have
another pretty general advice: Read other people's dotfiles from the
programs you are interested in. Google can hep you alot there. ;)

Since the configuration files of other people are in real use, they
often provide much more insight in what programs can do than "mere"
references like the manpages. Of course they tell you about every
option you have but it's a different approach than looking at user's
configurations that show you the common and most often used features.

Bert

--
gentoo-user@gentoo.org mailing list
Re: Vim - Buffers [ In reply to ]
Bert Buchholz wrote, On 29.09.2004 22:35:
> Well, it matters how you start it, but if for example the xterm is
> started in .xinitrc, you might use the -e option from xterm. See the
> manpage. My .xinitrc has a line like this:
>
> xterm -geometry 120x66+10+40 -e /usr/bin/screen -dR &
>
> (formerly aterm ;-))
>
> You don't want it in .bahrc since then every started bash would execute
> screen, wouldn't make sense AFAICS.
>
> Bert

I thought this would not work, because :
man xterm
The -ls flag and the loginShell resource are ignored if -e
is also given, because xterm does not know how to make the
shell start the given command after whatever it does when
it is a login shell - the user's shell of choice need not
be a Bourne shell after all. Also, xterm -e is supposed to
provide a consistent functionality for other applications
that need to start text-mode programs in a window, and if
loginShell were not ignored, the result of ~/.profile might
interfere with that.

If you do want the effect of -ls and -a simultaneously, you
may get away with something like

xterm -e /bin/bash -l -c "my command here"


I just had it back somewhere in my mind it´s impossible to have
xterm with -ls _and_ -e.

But as it seems this is possible, somehow.

I will try it and figure it out.


Thnaks for your reply

bye Thilo


--
gentoo-user@gentoo.org mailing list
Re: Re: Vim - Buffers [ In reply to ]
040929 Thilo Six wrote:
> I know from a Xfce 4.2 LiveCD
> that in there is a replacement for that more based upon Xterm.
> I had a closer look on that LiveCD again
> and this "new" Term ist "just" a plain gnome-terminal.

you mb refering to the independent Xfce terminal wh sb added to Xfce 4.2.0
& cb tried out via the Xfce4 CVS: or mb you didn't know re that (smile).

--
========================,,============================================
SUPPORT ___________//___, Philip Webb : purslow@chass.utoronto.ca
ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
TRANSIT `-O----------O---' University of Toronto

--
gentoo-user@gentoo.org mailing list
Re: Vim - Buffers [ In reply to ]
purslow@sympatico.ca wrote, On 30.09.2004 00:40:
> you mb refering to the independent Xfce terminal wh sb added to Xfce 4.2.0
> & cb tried out via the Xfce4 CVS: or mb you didn't know re that (smile).


What is your point?
It´s absoluty possible I´m missing something.
I tried the CD from Xfld.org and not via CVS.
If that´s what you are asking.
It wasn´t my intention in no way to affront Xfce and their work.
So if you know little more about this let me know.

If I got it wrong and they a really creating something new of that kind,
believe me there are only a few people that were happier than me about
that.

bye Thilo


--
gentoo-user@gentoo.org mailing list
Re: Vim - Buffers [ In reply to ]
Bert Buchholz wrote, On 29.09.2004 14:34:

> You see I have currently three shells in one terminal and I switch
> between them with F7 (prev) and F8 (next). This statusline is done like
> this in your .screenrc:
>
> hardstatus alwayslastline "%{=b wk}..:: %D %d-%m %c %1` %2`° | %-w%{=br}%n %t%{-}%+w ::.."
>
> The %1` and %2` are replaced by some mailchecker I made up and the CPU
> temperatur. ;)
>
> Cycling through your terminals with F7 and F8 is as easy as this:
>
> bindkey -k k7 prev
> bindkey -k k8 next
>
> And thousands of other great features ...
>
> Bert

I found something on the net what you´re probably interested in.

I like your status line, but there is one problem with it.
I get used to have my Xterm title showing smoething like

USER@HOST: PWD

When I activate hardstatus this doesn´t work anymore.

Now I found a solution to have them both. ;))

instead of
hardstatus alwayslastline "%{=b wk}..:: %D %d-%m %c %1` %2`° |
%-w%{=br}%n %t%{-}%+w ::.."

put this in .screenrc:

hardstatus off
caption always "%{=b wk}..:: %D %d-%m %c %1` %2`° | %-w%{=br}%n
%t%{-}%+w ::.."


I found that trick on:

http://lists.gnu.org/archive/html/screen-users/2004-08/msg00005.html


bye Thilo


--
gentoo-user@gentoo.org mailing list
Re: Re: Vim - Buffers [ In reply to ]
On Wed, Sep 29, 2004 at 09:57:22PM +0200, Thilo Six wrote:
> Thank very much Richard Kilgore and Bert Buchholz.
> This trick with screen und this cool statusline is just want I wanted.
>
> Now I can use Vim as I would like to.
>
> Do have any other hints and tricks like that?
>
> bye Thilo
>
> PS. any other hint and trick is always very welcome ;)

One that I recently found - vi keys in Firefox:

http://www.calmar.ws/firefox/index.php
http://www.vim.org/tips/tip.php?tip_id=317

- richard

--
Richard Kilgore
rkilgore@hotpop.com

--
gentoo-user@gentoo.org mailing list
Re: Vim - Buffers [ In reply to ]
Thilo Six wrote, On 29.09.2004 22:54:

>> xterm -geometry 120x66+10+40 -e /usr/bin/screen -dR &

> I just had it back somewhere in my mind it´s impossible to have
> xterm with -ls _and_ -e.
>
> But as it seems this is possible, somehow.
>
> I will try it and figure it out.

Found the answer to this on the net:

Q:My aliases do not work in screen. Ho do I make it so that everytime I
open a new screen, it sources my .bash_login (or csh's .login, etc.)
file?

A:Add the line
shell -$SHELL
to your ~/.screenrc file. this makes the shells think that they are
login shells and have to do full initialisation. For csh-like shells
this means, that both .login and .cshrc files will be loaded. Ususally
people are satisfied when shells under screen only sources their
.cshrc file.


http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html


bye Thilo


--
gentoo-user@gentoo.org mailing list
Re: Re: Vim - Buffers [ In reply to ]
040930 Thilo Six wrote:
> purslow@sympatico.ca wrote, On 30.09.2004 00:40:
>> you mb refering to the independent Xfce terminal wh sb added to Xfce 4.2.0
>> & cb tried out via the Xfce4 CVS: or mb you didn't know re that (smile).
> It´s absoluty possible I´m missing something.
> I tried the CD from Xfld.org and not via CVS.
> If I got it wrong and they a really creating something new of that kind,
> there are only a few people that were happier than me about that.

the best thing wb for you to subscribe to the Xfce mailing-lists
for users (to ask questions) & developers (to watch what they're doing):
you can do that via www.xfce.org/ . the new terminal is under discussion.

--
========================,,============================================
SUPPORT ___________//___, Philip Webb : purslow@chass.utoronto.ca
ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
TRANSIT `-O----------O---' University of Toronto

--
gentoo-user@gentoo.org mailing list
Re: Vim - Buffers [ In reply to ]
purslow@sympatico.ca wrote, On 30.09.2004 20:02:

> the best thing wb for you to subscribe to the Xfce mailing-lists
> for users (to ask questions) & developers (to watch what they're doing):
> you can do that via www.xfce.org/ . the new terminal is under discussion.

OK now I see. My apologies.


http://www.os-cillation.com/article.php?sid=40

http://www.os-cillation.com/documentation/terminal/C/index.html


This will be great. :) Really, really, really looking forward to 4.2.


bye Thilo


--
gentoo-user@gentoo.org mailing list
Re: Vim - Buffers [ In reply to ]
Thilo Six wrote, On 28.09.2004 06:47:
> Hello
>
> I´ve got following Problem with Vim:
> I got used to Nano´s Multibuffer Mode and I would like
> to have this in Vim, too.

Just an update to everyone who is interested. In portage is a neat
package to expand this functionality.

* app-vim/minibufexpl
Latest version available: 6.3.1-r1
Latest version installed: [ Not Installed ]
Size of downloaded files: [no/bad digest]
Homepage: http://www.vim.org/scripts/script.php?script_id=159
Description: vim plugin: easily switch between buffers

description
Several modern GUI editors list your open buffers as tabs along the top
or bottom of your screen (VisualStudio, DreamWeaver, EditPlus and
UltraEdit come to mind), now we have this feature in VIM! You can
checkout a screenshot here:

http://www.wavell.net/vim/vim_screenshot.gif


If you want to use this also, then just istall it via emerge and add
this to ~/.vimrc:

let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBuffs = 1
let g:miniBufExplModSelTarget = 1

Futher informatio at:
http://www.vim.org/scripts/script.php?script_id=159

bye Thilo


--
gentoo-user@gentoo.org mailing list
Re: Re: Vim - Buffers [ In reply to ]
On Mon, 04 Oct 2004 22:16:28 +0200 Thilo Six <T.Six@gmx.de> wrote:
| Just an update to everyone who is interested. In portage is a neat
| package to expand this functionality.
|
| * app-vim/minibufexpl

And whilst we're on the app-vim subject :)

* app-vim/gentoo-syntax
Latest version available: 20040911
Latest version installed: 20040911
Size of downloaded files: 6 kB
Homepage: http://developer.berlios.de/projects/gentoo-syntax
Description: vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog
and Portage Files syntax highlighting, filetype and
indent settings
License: vim

Please test and provide feedback.

--
Ciaran McCreesh : Gentoo Developer (Sparc, MIPS, Vim, Fluxbox)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm
Re: Re: Vim - Buffers [ In reply to ]
On Monday 04 October 2004 04:55 pm, Ciaran McCreesh wrote:
> And whilst we're on the app-vim subject :)
>
> * app-vim/gentoo-syntax
> Latest version available: 20040911
> Latest version installed: 20040911
> Size of downloaded files: 6 kB
> Homepage: http://developer.berlios.de/projects/gentoo-syntax
> Description: vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog
> and Portage Files syntax highlighting, filetype and
> indent settings
> License: vim
>
> Please test and provide feedback.

I thought this was already in there? When I pull up vim, its got all kinds of
perty colors in ebuilds.. :)

--
=======================================================================
Jabber: tradergt@(smelser.org|jabber.org)
Quote: (((((((( HYPNOTIC TAGLINE ))))))))
=======================================================================
Re: Re: Vim - Buffers [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ciaran McCreesh wrote:
| On Mon, 04 Oct 2004 22:16:28 +0200 Thilo Six <T.Six@gmx.de> wrote:
| | Just an update to everyone who is interested. In portage is a neat
| | package to expand this functionality.
| |
| | * app-vim/minibufexpl
|
| And whilst we're on the app-vim subject :)
|
| * app-vim/gentoo-syntax
| Latest version available: 20040911
| Latest version installed: 20040911
| Size of downloaded files: 6 kB
| Homepage: http://developer.berlios.de/projects/gentoo-syntax
| Description: vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog
| and Portage Files syntax highlighting, filetype and
| indent settings
| License: vim
|
| Please test and provide feedback.

Feedback: sexy.

- --
Half of being smart is knowing what you're dumb at.

Aaron Walker - Gentoo Developer [ Gentoo/BSD / forensics herd ]
ka0ttic@gentoo.org http://dev.gentoo.org/~ka0ttic/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBYh32C3poscuANHARAqYHAJ9EeGnXkdEjKuJjLJhbln8jv1qnowCfcF9a
yUDzDDNxZLB+b7HPYOqCnYY=
=+mtS
-----END PGP SIGNATURE-----


--
gentoo-user@gentoo.org mailing list
Re: Re: Vim - Buffers [ In reply to ]
* On Mon Oct-04-2004 at 08:37:51 PM -0500, Jeff Smelser said:
> On Monday 04 October 2004 04:55 pm, Ciaran McCreesh wrote:
> > And whilst we're on the app-vim subject :)
> >
> > * app-vim/gentoo-syntax
> > Latest version available: 20040911
> > Latest version installed: 20040911
> > Size of downloaded files: 6 kB
> > Homepage: http://developer.berlios.de/projects/gentoo-syntax
> > Description: vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog
> > and Portage Files syntax highlighting, filetype and
> > indent settings
> > License: vim
> >
> > Please test and provide feedback.
>
> I thought this was already in there? When I pull up vim, its got all kinds of
> perty colors in ebuilds.. :)

I think that's because ebuilds are just bash scripts with an .ebuild
suffix. IIRC this package provides actual ebuild-specific colouring.
(And for all the items listed, not just ebuilds)

--
Sami Samhuri

1 2  View All