Bos, Eric (Contractor | 1 Jun 03:00 2006
Picon

Problem with OmniCompletion

I just tried omnicompletion for the first time (vim70 on winXP). 

In a C++ file, I entered mC, and it started looking fo r things starting
with capital M, i.e. MC. This is a problem in itself since C++ is case
sensitivie.

Mor annoyingly, I hit delete to go back to that 'M' and make it an 'm'.
Vim then went into an endless loop trying to list everything in my sytem
starting with 'M'. I have 250,000 lines of code indexed via ctags (I
presume completion uses the same mechanism as the tags functionality). 

In any case, after looking at a frozen vim for a few minutes, I realised
it was never going to come back to me. At that stage even killing vim
was hard. I really think this needs looking at. 

Cheers.  

Eric Bos, Contractor (Software Development).
SLEW Group, EWRD, DSTO Edinburgh, South Australia Ph 8259-4264, Mob 041
8388 547

IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the
CRIMES ACT 1914. If you have received this email in error, you are
requested to contact the sender and delete the email.

Bos, Eric (Contractor | 1 Jun 03:03 2006
Picon

Problem with OmniCompletion

Hi, I just tried omnicompletion for the first time (vim70 on winXP). 

In a C++ file, I entered mC, and it started looking for things starting
with capital M, i.e. MC. This is a problem in itself since C++ is case
sensitive.

More annoyingly, I hit delete to go back to that 'M' and make it an 'm'.
Vim then went into an endless loop trying to list everything in my sytem
starting with 'M'. I have 250,000 lines of code indexed via ctags (I
presume completion uses the same mechanism as the tags functionality). 

In any case, after looking at a frozen vim for a few minutes, I realised
it was never going to come back to me. At that stage even killing vim
was hard. I really think this needs looking at. 

Cheers.  

Eric Bos, Contractor (Software Development).
SLEW Group, EWRD, DSTO Edinburgh, South Australia Ph 8259-4264, Mob 041
8388 547

IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the
CRIMES ACT 1914. If you have received this email in error, you are
requested to contact the sender and delete the email.

A.J.Mechelynck | 1 Jun 03:33 2006
Picon

Re: Problem with OmniCompletion

Bos, Eric (Contractor) wrote:
> I just tried omnicompletion for the first time (vim70 on winXP). 
>
> In a C++ file, I entered mC, and it started looking fo r things starting
> with capital M, i.e. MC. This is a problem in itself since C++ is case
> sensitivie.
>
> Mor annoyingly, I hit delete to go back to that 'M' and make it an 'm'.
> Vim then went into an endless loop trying to list everything in my sytem
> starting with 'M'. I have 250,000 lines of code indexed via ctags (I
> presume completion uses the same mechanism as the tags functionality). 
>
> In any case, after looking at a frozen vim for a few minutes, I realised
> it was never going to come back to me. At that stage even killing vim
> was hard. I really think this needs looking at. 
>
> Cheers.  
>
> Eric Bos, Contractor (Software Development).
> SLEW Group, EWRD, DSTO Edinburgh, South Australia Ph 8259-4264, Mob 041
> 8388 547
>
> IMPORTANT: This email remains the property of the Australian Defence
> Organisation and is subject to the jurisdiction of section 70 of the
> CRIMES ACT 1914. If you have received this email in error, you are
> requested to contact the sender and delete the email.
>
>
>
>   
(Continue reading)

Evan H. Carmi | 1 Jun 03:43 2006

put (paste) from windows clipboard into vim

hey all,

i am wondering how to copy through windows and than paste into vim with
a keyboard command.

for example: i am running FF and i copy some text, when i go into vim I
don't know how to put (paste) that text without right clicking and
selecting paste. the

:p

command doesn't work and seems to be put what is in the vim clipboard (i
don't think clipboard is the correct term for the place where vim has
yanked data. what is it?)

peace, Evan

Christian J. Robinson | 1 Jun 04:26 2006
Picon

Re: vim7: E788 is too restrictive

Today (Wed, 31 May 2006), Hari Krishna Dara wrote:

> It seems like I am getting E788 error too often, without much
> reason.  The latest is for the :compiler command that is being
> executed from a ftplugin.
[...]

I get this error as well.  There really needs to be some kind of
compromise--I'm only forcing a reload of the current buffer when I'm
trying to modify a readonly RCS controlled file.  The documentation
claims this is allowed but Vim7 trips all over itself.

- Christian

--

-- 
    You get a democracy when three wolves and a sheep vote on what to
                             have for dinner.
Christian J. Robinson <infynity <at> onewest.net> http://infynity.spodzone.com/
   PGP keys: 0x893B0EAF / 0xFB698360   http://infynity.spodzone.com/pgp

A.J.Mechelynck | 1 Jun 04:43 2006
Picon

Re: put (paste) from windows clipboard into vim

Evan H. Carmi wrote:
> hey all,
>
> i am wondering how to copy through windows and than paste into vim with
> a keyboard command.
>
> for example: i am running FF and i copy some text, when i go into vim I
> don't know how to put (paste) that text without right clicking and
> selecting paste. the
>
> :p
>
> command doesn't work and seems to be put what is in the vim clipboard (i
> don't think clipboard is the correct term for the place where vim has
> yanked data. what is it?)
>
> peace, Evan
>
>
>   
In Vim, the system clipboard is known as "register plus". On non-Unix 
versions, "register star" is synonymous with it. So, just prefix your P 
(put) command with "+ (double-quote plus) or, on non-Unix systems, by "* 
(double-quote star) and voilĂ ! The clipboard contents get patsed. 
Conversely, "+y or "+d do a yank (copy) or delete (cut) to the clipboard:

    "+p               paste before cursor
    "+P               paste after cursor
    "+y               copy (visual area, or takes a postfix telling Vim 
"what" to copy)
(Continue reading)

Bos, Eric (Contractor | 1 Jun 06:21 2006
Picon

tabedit breaks context menu file loads.

I just installed vim70 on winxp, and am exploring it. 

I like the :tabedit functionality, but if I place it in my vimrc file,
then opening a file with the contex menu no longer works - I get an
empty file, and I have to click on the correct tab and type :e to get
the file to show. Any ideas? 

Eric Bos, Contractor (Software Development).
SLEW Group, EWRD, DSTO Edinburgh, South Australia
Ph 8259-4264, Mob 041 8388 547

IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the
CRIMES ACT 1914. If you have received this email in error, you are
requested to contact the sender and delete the email.

SHANKAR R-R66203 | 1 Jun 06:43 2006

RE: Copying everything (not the complete line, only the matching pattern) which matches a pattern

This is assuming that the each line has only one matching pattern.
After hit and trial I have used the macro to do that.
But want to have some cute solution.

Regards,
Shankar

>
>Hi Shankar,
>
>1. Get the pattern matching lines in a separate buffer
>:g/<pattern>/t$
>
>2.
>:%s/^.*\(<your-pattern>\).*$/\1/
>
>
>~VIshhu
>
>-----Original Message-----
>From: SHANKAR R-R66203 [mailto:shankar.r <at> freescale.com]
>Sent: Wednesday, May 31, 2006 4:06 PM
>To: 'Vishnu'
>Cc: vim <at> vim.org
>Subject: RE: Copying everything (not the complete line, only the
>matching pattern) which matches a pattern
>
>This will copy the entire line.
>I do not want to copy the entire line, but just the pattern.
>
(Continue reading)

Hari Krishna Dara | 1 Jun 07:22 2006
Picon

Re: vim7: E788 is too restrictive


On Wed, 31 May 2006 at 8:26pm, Christian J. Robinson wrote:

> Today (Wed, 31 May 2006), Hari Krishna Dara wrote:
>
> > It seems like I am getting E788 error too often, without much
> > reason.  The latest is for the :compiler command that is being
> > executed from a ftplugin.
> [...]
>
> I get this error as well.  There really needs to be some kind of
> compromise--I'm only forcing a reload of the current buffer when I'm
> trying to modify a readonly RCS controlled file.  The documentation
> claims this is allowed but Vim7 trips all over itself.
>
> - Christian

The handling of FileChangedRO was never smooth for me. As a workaround,
I am thinking of avoiding a reload altogether and just mark the buffer
as 'noro'. I relied upon the reload for its side effects before, but I
should be able to force them directly, so all I can think of that needs
to be done after a successful checkout is to mark the buffer as
non-readonly. Any comments?

--

-- 
Thanks,
Hari

__________________________________________________
Do You Yahoo!?
(Continue reading)

Hari Krishna Dara | 1 Jun 07:26 2006
Picon

Re: Problem with OmniCompletion


On Thu, 1 Jun 2006 at 10:30am, Bos, Eric (Contractor) wrote:

> I just tried omnicompletion for the first time (vim70 on winXP).
>
> In a C++ file, I entered mC, and it started looking fo r things starting
> with capital M, i.e. MC. This is a problem in itself since C++ is case
> sensitivie.
>
> Mor annoyingly, I hit delete to go back to that 'M' and make it an 'm'.
> Vim then went into an endless loop trying to list everything in my sytem
> starting with 'M'. I have 250,000 lines of code indexed via ctags (I
> presume completion uses the same mechanism as the tags functionality).

Seems like the same problem I reported recently regarding the <BS>
triggering an insert-mode completion (as if ^X^N or ^X^L is pressed).
Does Vim show "Whole line completion" or something like that at the
bottom while it is scanning for matches? You should be able to press ^C
for Vim to stop doing this (worked for me at least).

--

-- 
Thanks,
Hari

>
> In any case, after looking at a frozen vim for a few minutes, I realised
> it was never going to come back to me. At that stage even killing vim
> was hard. I really think this needs looking at.
>
> Cheers.
(Continue reading)