Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

vim · Vim (Vi IMproved) text editor users list

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 43733 - 43762 of 137786   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#43733 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Sep 30, 2003 7:34 am
Subject: Re: "set fo=taqm" in .vimrc doesn't produce expected behavior
antoine.mechelynck@...
Send Email Send Email
 
Marc Adler <com.adlerpacific@...> wrote:
> * Antoine J. Mechelynck <antoine.mechelynck@...> [2003-09-29
> 20:56]:
> > Marc Adler <com.adlerpacific@...> wrote:
> > > * Gary Johnson <garyjohn@...> [2003-09-29 19:03]:
> > > > On 2003-09-29, Marc Adler <com.adlerpacific@...>
> > > > wrote:
> > > > > * Gary Johnson <garyjohn@...> [2003-09-29 07:46]:
> > > > > > On 2003-09-28, Marc Adler
> > > > > > <com.adlerpacific@...> wrote:
> > > >
> >
> > Beware of reintroducing it the next time you upgrade. Or take your
> > Vim upgrades online rather than from the RH CDs. (IIRC, just
> > yesterday I saw an announce about a version of Vim, freshly
> > compiled and built onto RPM files compatible with RH systems.)
>
> Thanks for the tip. What do you mean by taking my upgrades online? Do
> you mean upgrading from the new versions as they are announced on
> www.vim.org?

Yep. And not only on www.vim.org (which usually only has the unpatched
release in binary, if you want the latest update from there you have to
compile it yourself) but also third-party builds announced on vim@...

> Also, you might have heard already, but there isn't going
> to be RH 10. It has become Fedora. I wonder if they will also include
> the line in the script.
[...]

I dodn't know. And I wonder too. I also wonder why they changed a
widely-known and successful label. Havent they heard of "Don't change a
winning team", or "If 't'ain' broke, don' fix it"?

Regards,
Tony.

#43734 From: "Michael Erskine" <Michael.Erskine@...>
Date: Tue Sep 30, 2003 8:16 am
Subject: GVim 6.2 W2K - remap CTRL-mousewheel-scroll possible?
Michael.Erskine@...
Send Email Send Email
 
GVim 6.2 W2K - I want to remap the CTRL-mousewheel-movement to increase
and decrease font size. I already have guifont++.vim to do the guifont
size change (fantastic plugin!).

I'm coming to the conclusion that remapping the mousewheel scroll is
impossible on windows - unless somebody out there knows better :)


Michael.

#43735 From: Dasn Cups <dasn@...>
Date: Tue Sep 30, 2003 8:33 am
Subject: How to handle ~V character?
dasn@...
Send Email Send Email
 
I have a text file that contains ~V . It is not ~ and V, but a single
character. I moved cursor to ~V, and pressed  ga , then I got:

     <~V>  <M-^V>  150,  Hex 96,  Octal 226

I wanna replace ~V with other character, what should I do when I use
substitute command? Can I type this character in INSERT mode?

#43736 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Sep 30, 2003 8:36 am
Subject: Re: GVim 6.2 W2K - remap CTRL-mousewheel-scroll possible?
antoine.mechelynck@...
Send Email Send Email
 
Michael Erskine <Michael.Erskine@...> wrote:
> GVim 6.2 W2K - I want to remap the CTRL-mousewheel-movement to
> increase and decrease font size. I already have guifont++.vim to do
> the guifont size change (fantastic plugin!).
>
> I'm coming to the conclusion that remapping the mousewheel scroll is
> impossible on windows - unless somebody out there knows better :)
>
>
> Michael.

I don't have a mouse wheel, but from ":help scroll-mouse-wheel" it seems
that the pseudokeys you need to remap are <MouseUp> and <MouseDown>. That's
the {lhs} of your mappings. For the {rhs}, use whatever command is required
by that "fantastic" plugin (which, of course, I don't have either).

HTH,
Tony.

#43737 From: maoz <maoz@...>
Date: Tue Sep 30, 2003 9:18 am
Subject: hex value
maoz@...
Send Email Send Email
 
Hi Vimmers

How can i extract the hex value of a character under the cursor.

#43738 From: "Andrei A. Voropaev" <avorop@...>
Date: Tue Sep 30, 2003 8:53 am
Subject: Re: russian text in gvim
avorop@...
Send Email Send Email
 
On Mon, Sep 29, 2003 at 08:32:58PM +0200, Bram Moolenaar wrote:
> > Today I tried to type some russian text in gvim under X and got very strange
> > results. To be able to see russian I did
> >
> > export LC_CTYPE=ru_RU
> >
> > While typing text everything was looking correct. But after I saved the
> > file, all the letters there were converted to some other than koi8-r
> > encoding, so viewing the file with other than gvim program produces
> > garbage. The funny part is that even vim does not display that file
> > correctly.
>
> Sounds strange.  Perhaps there is more in your setup that matters?
>
> Just setting $LC_CTYPE is unusual, you might be better off setting $LANG.
> But most important is the setting of 'encoding'.  And possibly
> 'termencoding'.

Actually I've learned the hard way that only setting LC_CTYPE is the
best (for me) because in this case I get only support for russian text
but don't get russian menus and russian system messages (for many
programs this is broken). I just was not setting it properly. But when
it is set correctly (ru_RU.KOI8-R) then it automatically sets 'encoding'
and 'termencoding' values in gvim. (This magic you have to explain :)

--
Andrei

#43739 From: Eugene Lee <eugene@...>
Date: Tue Sep 30, 2003 8:58 am
Subject: Re: hex value
eugene@...
Send Email Send Email
 
On Tue, Sep 30, 2003 at 12:18:26PM +0300, maoz wrote:
:
: How can i extract the hex value of a character under the cursor.

	 :help ascii

--
Eugene Lee
eugene at anime dot net

#43740 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Sep 30, 2003 8:59 am
Subject: Re: How to handle ~V character?
antoine.mechelynck@...
Send Email Send Email
 
Dasn Cups <dasn@...> wrote:
> I have a text file that contains ~V . It is not ~ and V, but a single
> character. I moved cursor to ~V, and pressed  ga , then I got:
>
>     <~V>  <M-^V>  150,  Hex 96,  Octal 226
>
> I wanna replace ~V with other character, what should I do when I use
> substitute command? Can I type this character in INSERT mode?

see ":help i_CTRL-V_digit" (methods which, IIUC, are usable not only in
Insert/Replace mode but also in Command-line and Operator-pending modes)

and remember that, if your Ctrl-V does a paste, then you should use Ctrl-Q
instead (:help c_CTRL-Q, :help i_CTRL-Q, and :help CTRL-V-alternative).

HTH,
Tony.

#43741 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Sep 30, 2003 9:00 am
Subject: Re: hex value
antoine.mechelynck@...
Send Email Send Email
 
maoz <maoz@...> wrote:
> Hi Vimmers
>
> How can i extract the hex value of a character under the cursor.

see
     :help ga

HTH,
Tony

#43742 From: martinkov@...
Date: Tue Sep 30, 2003 9:08 am
Subject: language messages
martinkov@...
Send Email Send Email
 
hello,

i have the setting "language messages en" in my .vimrc file, but each
time i start vim in non-gui mode it generates error E197 (cannot set
language to "en"). i've tried this in windows, cygwin, solaris.

is there a way how to avoid this error message? i can think of either
suppressing this particular error or of if statement checking for
something and then possibly setting language based on that check. but
i've read through multi-language chapter and gui chapter and didn't
find anything. :-(

thanks for any hints.

martin


====================== REKLAMA =================================
Vyrazne zlavy pocitacov a prislusenstva
Sun Fire V210 server v cenach uz od 125.000,- Sk bez DPH
Navstivte nas na adrese http://www.somi.sk/sun/lowend_servery.php
================================================================

#43743 From: "Michael Erskine" <Michael.Erskine@...>
Date: Tue Sep 30, 2003 9:07 am
Subject: Run some perl - capture output - how?
Michael.Erskine@...
Send Email Send Email
 
I'm happily teaching myself Gvim and I come to the point where I want to
run a perl script and capture the output in a buffer; in my previous
editor, SCiTE, I would hit F5 and the output window would fill with
stdout and stderr.

Over to GVim and ":he perl" shows me some real interesting things but
not what I'm looking for. Then imagine my horror to read: -

========================================================================
======
Executing shell commands in a window 	 *shell-window*

There have been questions for the possibility to execute a shell in a
window
inside Vim.  The answer: you can't!  Including this would add a lot of
code to
Vim, which is a good reason not to do this.  After all, Vim is an
editor, it
is not supposed to do non-editing tasks.  However, to get something like
this,
you might try splitting your terminal screen or display window with the
"splitvt" program.  You can probably find it on some ftp server.  The
person
that knows more about this is Sam Lantinga <slouken@...>.
An alternative is the "window" command, found on BSD Unix systems, which
supports multiple overlapped windows.  Or the "screen" program, found at
www.uni-erlangen.de, which supports a stack of windows.

========================================================================
======

Aaaaaaaaaaaaaarrrrrrgghhhh! :)

Does this mean I can't execute my scripts and capture the output without
leaving the comfort of my vim?

How does everyone else do this (very common :) task?

Michael.

#43744 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Sep 30, 2003 9:18 am
Subject: Re: language messages
antoine.mechelynck@...
Send Email Send Email
 
martinkov@... wrote:
> hello,
>
> i have the setting "language messages en" in my .vimrc file, but each
> time i start vim in non-gui mode it generates error E197 (cannot set
> language to "en"). i've tried this in windows, cygwin, solaris.
>
> is there a way how to avoid this error message? i can think of either
> suppressing this particular error or of if statement checking for
> something and then possibly setting language based on that check. but
> i've read through multi-language chapter and gui chapter and didn't
> find anything. :-(
>
> thanks for any hints.
>
> martin
[advertisement snipped]

Which vim version are you using? I also have "language messages en" in my
vimrc and I get no error (using gvim 6.2.96 on Win95 4.10.2222). What I
actually have in the script is

     if has(("multi_lang")
         set langmenu=none
         language messages en
     endif

and this brings another question: Do you have +multi_lang complied-in? (Does
:echo has("multi_lang") give a nonzero answer?)

HTH,
Tony.

Regards,
Tony.

#43745 From: Thomas Köhler <jean-luc@...>
Date: Tue Sep 30, 2003 9:34 am
Subject: Re: Run some perl - capture output - how?
jean-luc@...
Send Email Send Email
 
Michael Erskine wrote [2003/09/30]:
> I'm happily teaching myself Gvim and I come to the point where I want to
> run a perl script and capture the output in a buffer; in my previous
> editor, SCiTE, I would hit F5 and the output window would fill with
> stdout and stderr.
[...]
> How does everyone else do this (very common :) task?

:r!whatevercommand
:help :r

> Michael.

Ciao,
Thomas

--
  Thomas Köhler Email:   jean-luc@...     | LCARS - Linux
      <><        WWW:     http://jeanluc-picard.de      | for Computers
                 IRC:             jeanluc               | on All Real
                PGP public key available from Homepage! | Starships

#43746 From: Nazri Ramliy <ayie@...>
Date: Tue Sep 30, 2003 10:38 am
Subject: Re: Run some perl - capture output - how?
ayie@...
Send Email Send Email
 
On Tue, Sep 30, 2003 at 10:07:26AM +0100, Michael Erskine wrote:
> I'm happily teaching myself Gvim and I come to the point where I want to
> run a perl script and capture the output in a buffer; in my previous
> editor, SCiTE, I would hit F5 and the output window would fill with
> stdout and stderr.

[snip]

>
> How does everyone else do this (very common :) task?

I write the command(s) in the buffer, then escape to normal mode and
type !!sh.

Regards,

     Nazri

#43747 From: "A. S. Budden" <vim.mail@...>
Date: Tue Sep 30, 2003 11:48 am
Subject: Slightly OT: Vim/Cat
vim.mail@...
Send Email Send Email
 
Hi there,

This is possibly optimistic and almost certainly off-topic, but I was
wondering if it is possible to make vim open a file and just dump it to
standard out, with syntax highlighting/tab spacing etc done.

My linux console certainly supports colours if I do "ls" or "ls
--color=always | more" (this doesn't work with less), and I was
wondering if I could have a version of cat that uses vim to syntax
highlight and dump the output on the screen.

Just wondering...

Cheers,

Al

#43748 From: "Andrei A. Voropaev" <avorop@...>
Date: Tue Sep 30, 2003 11:57 am
Subject: Re: language messages
avorop@...
Send Email Send Email
 
On Tue, Sep 30, 2003 at 11:08:35AM +0200, martinkov@... wrote:
> i have the setting "language messages en" in my .vimrc file, but each
> time i start vim in non-gui mode it generates error E197 (cannot set
> language to "en"). i've tried this in windows, cygwin, solaris.
>
> is there a way how to avoid this error message? i can think of either
> suppressing this particular error or of if statement checking for
> something and then possibly setting language based on that check. but
> i've read through multi-language chapter and gui chapter and didn't
> find anything. :-(
>
> thanks for any hints.

Did you try to use .vimrc and .gvimrc? I simply put gui configurations
into .gvimrc and common settings in .vimrc. Though probably there are
some variables that allow you to test things but I always liked simple
solutions :)

--
Andrei

#43749 From: martinkov@...
Date: Tue Sep 30, 2003 12:10 pm
Subject: Re: language messages
martinkov@...
Send Email Send Email
 
hello,

as i said, it doesn't happen when using gui version (win32, motif,
gtk) or said in a different way - when running vim in gui mode.
and yes, i have multi_lang feature compiled in.
the versions i'm running are 6.2 and 6.0.

martin

> martinkov@... wrote:
> > hello,
> >
> > i have the setting "language messages en" in my .vimrc file, but each
> > time i start vim in non-gui mode it generates error E197 (cannot set
> > language to "en"). i've tried this in windows, cygwin, solaris.
> >
> > is there a way how to avoid this error message? i can think of either
> > suppressing this particular error or of if statement checking for
> > something and then possibly setting language based on that check. but
> > i've read through multi-language chapter and gui chapter and didn't
> > find anything. :-(
> >
> > thanks for any hints.
> >
> > martin
> [advertisement snipped]
>
> Which vim version are you using? I also have "language messages en"
in my
> vimrc and I get no error (using gvim 6.2.96 on Win95 4.10.2222). What I
> actually have in the script is
>
>     if has(("multi_lang")
>         set langmenu=none
>         language messages en
>     endif
>
> and this brings another question: Do you have +multi_lang
complied-in? (Does
> :echo has("multi_lang") give a nonzero answer?)
>
> HTH,
> Tony.
>
> Regards,
> Tony.
>
>

====================== REKLAMA =================================
Vyrazne zlavy pocitacov a prislusenstva
Sun Fire V210 server v cenach uz od 125.000,- Sk bez DPH
Navstivte nas na adrese http://www.somi.sk/sun/lowend_servery.php
================================================================

#43750 From: martinkov@...
Date: Tue Sep 30, 2003 12:25 pm
Subject: Re: language messages
martinkov@...
Send Email Send Email
 
hello,

first of all, imho it shouldnt be any difference between vim running
in non-gui and gui mode in this case, as messages are output/displayed
in both of them. am i correct?

second, according to what i've read somewhere in docs, you need to put
this in .vimrc because of a configuration files ordering or something.

martin

> On Tue, Sep 30, 2003 at 11:08:35AM +0200, martinkov@... wrote:
> > i have the setting "language messages en" in my .vimrc file, but each
> > time i start vim in non-gui mode it generates error E197 (cannot set
> > language to "en"). i've tried this in windows, cygwin, solaris.
> >
> > is there a way how to avoid this error message? i can think of either
> > suppressing this particular error or of if statement checking for
> > something and then possibly setting language based on that check. but
> > i've read through multi-language chapter and gui chapter and didn't
> > find anything. :-(
> >
> > thanks for any hints.
>
> Did you try to use .vimrc and .gvimrc? I simply put gui configurations
> into .gvimrc and common settings in .vimrc. Though probably there are
> some variables that allow you to test things but I always liked simple
> solutions :)
>
> --
> Andrei
>

====================== REKLAMA =================================
Vyrazne zlavy pocitacov a prislusenstva
Sun Fire V210 server v cenach uz od 125.000,- Sk bez DPH
Navstivte nas na adrese http://www.somi.sk/sun/lowend_servery.php
================================================================

#43751 From: Thomas Köhler <jean-luc@...>
Date: Tue Sep 30, 2003 12:26 pm
Subject: Re: Slightly OT: Vim/Cat
jean-luc@...
Send Email Send Email
 
A. S. Budden wrote [2003/09/30]:
> This is possibly optimistic and almost certainly off-topic, but I was
> wondering if it is possible to make vim open a file and just dump it to
> standard out, with syntax highlighting/tab spacing etc done.

Not exactly.

> My linux console certainly supports colours if I do "ls" or "ls
> --color=always | more" (this doesn't work with less),

You might want to try "less -r" :-)

> and I was wondering if I could have a version of cat that uses
> vim to syntax highlight and dump the output on the screen.
>
> Just wondering...

Purhaps something similar to the attached vimrc might help you.
It won't work with stdout, so no "vim | less -r". If you need a
pager, you should use vim as a pager in the first place :-)

Ciao,
Thomas

--
  Thomas Köhler Email:   jean-luc@...     | LCARS - Linux
      <><        WWW:     http://jeanluc-picard.de      | for Computers
                 IRC:             jeanluc               | on All Real
                PGP public key available from Homepage! | Starships
norm 1G
set t_ti= t_te=
set nolazyredraw
set background=dark
set updatetime=10
syn on

fun! Scrolldown()
    let x=line(".")
    let y=line("$")
    while x < y
        norm j
        let x=line(".")
    endwhile
    q
endfun
au! CursorHold * call Scrolldown()

#43752 From: John Aldridge <jaldri1@...>
Date: Tue Sep 30, 2003 1:39 pm
Subject: Re: Vim got frozen when dealing with long line?
jaldri1@...
Send Email Send Email
 
At 03:20 09-30-2003, Dasn Cups wrote:

>On Mon, Sep 29, 2003 at 08:44:58AM -1000, Marc Adler wrote:
> > > On Sun, Sep 28, 2003 at 08:54:39PM -1000, Marc Adler wrote: [...]
> > > > > But, that didn't do enough joins.  I'm sure that this could be
> > > > > extended to get the desired results.  But for casual typing, my
> > > > > original suggestion (repeated below) works quite nicely.
> > > > >
> > > > >    :set tw=99999 gggqG
> > > > >
> > > > > And then back again:
> > > > >
> > > > >    :set tw=78 gggqG
> > > >
>
>I tried these commands, but my Vim got crashed.
>I opened a file (about 300 lines) and did:
>
>     :set tw=99999
>     gggqG (I got a real _long_ line after this)
>
>then I press the <End> key, and Vim got frozen.
>I am using Vim 6.1, Linux box.
>Any idea?
>--

I don't know about the freezing on the long lines.  I was able to
copy change.txt into a new buffer, do a :%j, and press <End>.
There was no noticeable delay in the movement, and the status line
shows 1,54750-57826.

Remember, "Formatting does not change empty lines (but it does change
lines with only white space!)." (from :h change.txt)


~
~
~
"John R. Aldridge, Jr."

#43753 From: "Kats Michael" <michaka@...>
Date: Tue Sep 30, 2003 1:47 pm
Subject: GVIM toolbar problem on hp-ux 10.20
michaka@...
Send Email Send Email
 
Hi all,
I am using the hp-ux 10.20 system with gtk+ ,glib and gettext support.
I succeeded to compile and run the gvim 6.2 version, but I can not see the
toggle toolbar on it.
When compile I used: configure --enable-gui --with-tlib=curses --enable-cscope
If I look at gvim :version, it show me that toolbar is with (-) option.
How can I enable it.

Thanks.
Michael Kats
ET System administrator
Tel: (972)-4-6506190
Email: michaka@...

#43754 From: Thomas Köhler <jean-luc@...>
Date: Tue Sep 30, 2003 1:44 pm
Subject: Re: Slightly OT: Vim/Cat
jean-luc@...
Send Email Send Email
 
Thomas Köhler wrote [2003/09/30]:
> A. S. Budden wrote [2003/09/30]:
> Purhaps something similar to the attached vimrc might help you.
> It won't work with stdout, so no "vim | less -r". If you need a
> pager, you should use vim as a pager in the first place :-)

Uhm, not exactly what it should be. It's better to first test and
then send mail :)
Try attached better version (which needs some keytyping to quit
vim because CursorHold gets only fired once).

Ciao,
Thomas

--
  Thomas Köhler Email:   jean-luc@...     | LCARS - Linux
      <><        WWW:     http://jeanluc-picard.de      | for Computers
                 IRC:             jeanluc               | on All Real
                PGP public key available from Homepage! | Starships
norm 1G
set t_ti= t_te=
set nolazyredraw
set background=dark
set updatetime=10
set nocompatible
syn on

nmap ,, j,,
au CursorHold * normal ,,
au CursorHold * au! CursorHold * q

#43755 From: "Aldrich, Timothy" <timothy.aldrich@...>
Date: Tue Sep 30, 2003 2:06 pm
Subject: RE: Run some perl - capture output - how?
timothy.aldrich@...
Send Email Send Email
 
> I'm happily teaching myself Gvim and I come to the point
> where I want to
> run a perl script and capture the output in a buffer; in my previous
> editor, SCiTE, I would hit F5 and the output window would fill with
> stdout and stderr.
>
> Over to GVim and ":he perl" shows me some real interesting things but
> not what I'm looking for. Then imagine my horror to read: -
>[...]
> Does this mean I can't execute my scripts and capture the
> output without
> leaving the comfort of my vim?
<personal opinion>
Oh please don't turn vim into .... that *other* editor !
keep it small and fast , keep the terminal in the, well,
terminal.
</personal opinion>
>
> How does everyone else do this (very common :) task?
:!perl %



R/S
-----------------------
Timothy Aldrich
Credit | First
Suisse | Boston
Web Engineering
-----------------------
--




==============================================================================
This message is for the named person's use only. It may contain sensitive and
private proprietary or legally privileged information. No confidentiality or
privilege is waived or lost by any mistransmission. If you are not the
intended recipient, please immediately delete it and all copies of it from
your system, destroy any hard copies of it and notify the sender. You must
not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. CREDIT SUISSE
GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE
ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the
right to monitor all e-mail communications through its networks. Any views
expressed in this message are those of the individual sender, except where the
message states otherwise and the sender is authorized to state them to be the
views of any such entity.
Unless otherwise stated, any pricing information given in this message is
indicative  only, is subject to change and does not constitute an offer to
deal at any price quoted. Any reference to the terms of executed transactions
should be treated as  preliminary only and subject to our formal written
confirmation.
==============================================================================

#43756 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Sep 30, 2003 3:40 pm
Subject: Re: Slightly OT: Vim/Cat
antoine.mechelynck@...
Send Email Send Email
 
A. S. Budden <vim.mail@...> wrote:
> Hi there,
>
> This is possibly optimistic and almost certainly off-topic, but I was
> wondering if it is possible to make vim open a file and just dump it
> to standard out, with syntax highlighting/tab spacing etc done.
>
> My linux console certainly supports colours if I do "ls" or "ls
> --color=always | more" (this doesn't work with less), and I was
> wondering if I could have a version of cat that uses vim to syntax
> highlight and dump the output on the screen.
>
> Just wondering...
>
> Cheers,
>
> Al

I don't know how to dump a syntax-colored file with interspersed
terminal-control sequences, which seems to be what you want. But, starting
at ":help 2html.vim", there is a description (in some 80 lines of help text)
of how to convert a syntax-colored file you see in Vim, to something that
can be viewed with the same colors in a web browser such as (for instance)
Netscape. To view the result, just use as your URL the full path name of the
output file, prefixed with the word "file", a colon, and three slashes.

OTOH, using the 'printoptions' option and the ":hardcopy" command, you can
write your file to a printer (or to a file suitable to be sent to a
printer), with or without syntax coloring.

HTH,
Tony.

#43757 From: Graydon <oak@...>
Date: Tue Sep 30, 2003 6:22 pm
Subject: Re: "set fo=taqm" in .vimrc doesn't produce expected behavior
oak@...
Send Email Send Email
 
On Mon, Sep 29, 2003 at 09:19:02PM -1000, Marc Adler scripsit:
> Thanks for the tip. What do you mean by taking my upgrades online? Do
> you mean upgrading from the new versions as they are announced on
> www.vim.org? Also, you might have heard already, but there isn't going
> to be RH 10. It has become Fedora. I wonder if they will also include
> the line in the script.

Speaking as someone who is running Fedora and who just removed it, I'd
say that was a 'yes'.

--
oak@... | Uton we hycgan    hwaer we ham agen,
                  | ond thonne gedhencan    he we thider cumen.
                  |   -- The Seafarer, ll. 117-118.

#43758 From: Marc Adler <com.adlerpacific@...>
Date: Tue Sep 30, 2003 6:27 pm
Subject: Re: "set fo=taqm" in .vimrc doesn't produce expected behavior
com.adlerpacific@...
Send Email Send Email
 
* Antoine J. Mechelynck <antoine.mechelynck@...> [2003-09-29 21:37]:
> Marc Adler <com.adlerpacific@...> wrote:
> > * Antoine J. Mechelynck <antoine.mechelynck@...> [2003-09-29
> > 20:56]:
> > > Marc Adler <com.adlerpacific@...> wrote:
> > > > * Gary Johnson <garyjohn@...> [2003-09-29 19:03]:
> > > > > On 2003-09-29, Marc Adler <com.adlerpacific@...>
> > > > > wrote:
> > > > > > * Gary Johnson <garyjohn@...> [2003-09-29 07:46]:
> > > > > > > On 2003-09-28, Marc Adler
> > > > > > > <com.adlerpacific@...> wrote:
> > > > >
> > >
> > > Beware of reintroducing it the next time you upgrade. Or take your
> > > Vim upgrades online rather than from the RH CDs. (IIRC, just
> > > yesterday I saw an announce about a version of Vim, freshly
> > > compiled and built onto RPM files compatible with RH systems.)
> >
> > Thanks for the tip. What do you mean by taking my upgrades online? Do
> > you mean upgrading from the new versions as they are announced on
> > www.vim.org?
>
> Yep. And not only on www.vim.org (which usually only has the unpatched
> release in binary, if you want the latest update from there you have to
> compile it yourself) but also third-party builds announced on vim@...
>
> > Also, you might have heard already, but there isn't going
> > to be RH 10. It has become Fedora. I wonder if they will also include
> > the line in the script.
> [...]
>
> I dodn't know. And I wonder too. I also wonder why they changed a
> widely-known and successful label. Havent they heard of "Don't change a
> winning team", or "If 't'ain' broke, don' fix it"?

Strange things are afoot at RH. I even heard them called the Microsoft
of Linux the other day...

Anyway, thanks for all the advice!

--
Tue, 30 Sep 2003 08:26:01 -1000
Linux 2.4.20-20.9
Mutt 1.4.1i (2003-03-19)


You are a banana moon subverting the sun.

		 -- the surreal compliment generator
Marc Adler

#43759 From: "Rui Alberto L." Gonçalves <rui-l-goncalves@...>
Date: Tue Sep 30, 2003 7:17 pm
Subject: encoding problem!
rui-l-goncalves@...
Send Email Send Email
 
Hello,
I'am having an encoding problem with vim under linux!
system $LANG variable is en_US.
When no encoding is specified in .vimrc, writing something
like "olás" results "olá s". If I do not remove the blank
space, exiting vim and entering again, reopening the file
everything is ok, the word appears "olás" without the space!!
If I remove the space before exit vim, results in "ol?s"
I tryed to set enconding in .vimrc to iso-8859-1, utf-8,
iso-latin1 but without success!!!
Does anyone have any idea whats happening here?
Thanks for any help...
Rui Gonçalves




--
Rui Alberto L. Gonçalves <rui-l-goncalves@...>
PT Inovação

#43760 From: "James R Bamford" <jim@...>
Date: Tue Sep 30, 2003 8:54 pm
Subject: Tool Tips behaviour!? possible?
jim@...
Send Email Send Email
 
Just got Taglist setup today, very impressive it is too.. with the breakdown of
items in the left hand vertical window... the prototype along the bottom is nice
too..

Its so close tho but i'd love something that rather than working with tags on a
per file used the full tags file.. I always have it made for my source project
and navigate with them fine...

It'd be great to get a sidewindow like taglist come up and as you type function
calls in it sorts throught your tags file and puts the narrowed list in the
window like taglist.. eventually ending up on the full declaration (or
shortcutting by pressing a key to autocomplete (^P i guess !?)) and showing you
its function declaration so you know the parameters...

Has this been done elsewhere!?? I've tried searching but am not sure what to
search for.. everything i've tried has come up with nothing...  does it sound
feasible?!?

Thanks

Jim

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003

#43761 From: "Keith Roberts" <kroberts@...>
Date: Tue Sep 30, 2003 9:54 pm
Subject: automatic editing via command line args
kroberts@...
Send Email Send Email
 
I'm trying to automatically edit a file between processes from within an
environment which is "on top of" linux.  The command I use is:

BASH -c "vi -s /usr/wpas/KROBERTS/chge.test.vim
/usr/wpas/CLAIMS/BP/ACCUM.CHANGE"

[this is all on one line, and the "environment" passes everything inside the
quotes to the shell]

chge.test.vim has:
	 :/^INCLUDE\ DB.INC\ CHANGE.TEST/ s/^/*/
	 :wq

This does the job, but it spews the current "screenful" of the program out
to the terminal emulator.


In an effort to avoid this, I tried changing 'vi' to 'ex', but it just says,
"2 files to edit" and sits there looking stupid.

What am I doing wrong?

#43762 From: Dasn Cups <dasn@...>
Date: Tue Sep 30, 2003 9:54 pm
Subject: Re: Vim got frozen when dealing with long line?
dasn@...
Send Email Send Email
 
On Tue, Sep 30, 2003 at 09:39:52AM -0400, John Aldridge wrote:
> At 03:20 09-30-2003, Dasn Cups wrote:
>
> >On Mon, Sep 29, 2003 at 08:44:58AM -1000, Marc Adler wrote:
> >> > On Sun, Sep 28, 2003 at 08:54:39PM -1000, Marc Adler wrote: [...]
> >> > > > But, that didn't do enough joins.  I'm sure that this could be
> >> > > > extended to get the desired results.  But for casual typing, my
> >> > > > original suggestion (repeated below) works quite nicely.
> >> > > >
> >> > > >    :set tw=99999 gggqG
> >> > > >
> >> > > > And then back again:
> >> > > >
> >> > > >    :set tw=78 gggqG
> >> > >
> >
> >I tried these commands, but my Vim got crashed.
> >I opened a file (about 300 lines) and did:
> >
> >    :set tw=99999
> >    gggqG (I got a real _long_ line after this)
> >
> >then I press the <End> key, and Vim got frozen.
> >I am using Vim 6.1, Linux box.
> >Any idea?
> >--
>
> I don't know about the freezing on the long lines.  I was able to
> copy change.txt into a new buffer, do a :%j, and press <End>.
> There was no noticeable delay in the movement, and the status line
> shows 1,54750-57826.
>
> Remember, "Formatting does not change empty lines (but it does change
> lines with only white space!)." (from :h change.txt)
>
>
> ~
> ~
> ~
> "John R. Aldridge, Jr."

Thanks for your tips.
I did :%j this time, and it took about 5 minutes.
Then I pressed <End>, it took about 3 minutes to finish this work.

CPU CeleronII 566mhz, 64M Memory, an old S3 video card with 2M memory.
Thanks for any suggestion.

Messages 43733 - 43762 of 137786   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help