[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

vim autocomplete

Mark Chandler

9/18/2006 3:42:00 AM

I recently installed vim 7. The only autocomplete I can find it the
omnicomplete, using CTRL-X CTRL-O. Is there a way to make
auto-completion automatic, and if not, is there a way to change the
shortcut so I don't have to hit CTRL-X CTRL-O every time?

Thanks in advance.

--
Posted via http://www.ruby-....

10 Answers

JeffC

9/18/2006 4:22:00 AM

0

Try <ctrl-n> in insert mode.

Mark Chandler wrote:
> I recently installed vim 7. The only autocomplete I can find it the
> omnicomplete, using CTRL-X CTRL-O. Is there a way to make
> auto-completion automatic, and if not, is there a way to change the
> shortcut so I don't have to hit CTRL-X CTRL-O every time?
>
> Thanks in advance.
>
> --
> Posted via http://www.ruby-....

A. S. Bradbury

9/18/2006 11:35:00 AM

0

On Monday 18 September 2006 05:26, JeffC wrote:
> Try <ctrl-n> in insert mode.
>
> Mark Chandler wrote:
> > I recently installed vim 7. The only autocomplete I can find it the
> > omnicomplete, using CTRL-X CTRL-O. Is there a way to make
> > auto-completion automatic, and if not, is there a way to change the
> > shortcut so I don't have to hit CTRL-X CTRL-O every time?
> >
> > Thanks in advance.

Check out supertab[1], it allows you to use tab for the completion type of
your choice, tab will work as normal when the cursor is not at the end of a
word.

As the options suggestion, just add the following to your .vimrc for tab to
map to omni-completion:
let g:SuperTabDefaultCompletionType = "<C-X><C-O>"

Regards,
Alex

A. S. Bradbury

9/18/2006 11:38:00 AM

0

On Monday 18 September 2006 12:35, A. S. Bradbury wrote:
> On Monday 18 September 2006 05:26, JeffC wrote:
> > Try <ctrl-n> in insert mode.
> >
> > Mark Chandler wrote:
> > > I recently installed vim 7. The only autocomplete I can find it the
> > > omnicomplete, using CTRL-X CTRL-O. Is there a way to make
> > > auto-completion automatic, and if not, is there a way to change the
> > > shortcut so I don't have to hit CTRL-X CTRL-O every time?
> > >
> > > Thanks in advance.
>
> Check out supertab[1], it allows you to use tab for the completion type of
> your choice, tab will work as normal when the cursor is not at the end of a
> word.
>

Forgot the link

1. http://www.vim.org/scripts/script.php?scri...

Jeff Schwab

9/18/2006 1:56:00 PM

0

> Mark Chandler wrote:
>> I recently installed vim 7. The only autocomplete I can find it the
>> omnicomplete, using CTRL-X CTRL-O. Is there a way to make
>> auto-completion automatic, and if not, is there a way to change the
>> shortcut so I don't have to hit CTRL-X CTRL-O every time?
>>
>> Thanks in advance.
>>
>> --
>> Posted via http://www.ruby-....
>

JeffC wrote:
> Try <ctrl-n> in insert mode.
>

Or Control-P, depending on how you want the auto-complete options sorted.

jt

1/26/2013 6:17:00 PM

0

INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in
news:amifvaF6visU1@mid.uni-berlin.de:

> Tim Roll-Pickering wrote:
>> INIREF*I&R ~ GB wrote:
>>
>>> When will the coalition government obey the will of the people by
>>> enabling we constituents to remove an MP who is corrupt or has
>>> performed badly?
>>
>> If an MP is found to be corrupt they should have their job
>> prematurely terminated by the courts. A jury should not be replaced
>> by a megaphone shouting mob.
>>
>> Who defines "performed badly" *before* a petition can be triggered?
>>
>>> If HM government is too incompetent to legislate on this,
>>
>> I note you're not holding up a selected partial example of another
>> country with recall rules in this range (as opposed to "Recall
>> whenever the opposition can mount a sneak campaign over midterm
>> unpopularity"). Given your usual style that's telling.
>>
>>> Hold a binding referendum to introduce the "recall".
>>
>> Binding in a messy procedure is the worst of all worlds and one of
>> the reasons why so many are opposed to the mess of unfettered
>> referendums.
>>
>>> And let's add in a "piggy back" ballot proposal to give ourselves
>>> the right to obtain a referendum about any public issue (very useful
>>> if gov. "forgets" something important).
>>
>> No. You get the people to turn out first to make your case
>> convincing. Remember those 9% turnout referendums on Sunday openings
>> of pubs?
>>
>
> To help maintain the high quality of Usenet, why do you not try to
> answer the main question of the opening post?

He did. In a line by line rebuttal of your points. Now, to help
maintain the high quality of Usenet, why don't _you_ address his points
rather than your usual responses of either evasion, as shown above. or
more commonly, the tumbleweed 'response'? You can start with the 9%
turnout comment and work back if you wish.


I&R ~ GB

1/26/2013 7:14:00 PM

0

soupdragon wrote:

(from google.com -- problem with newsreader)
INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in
news:amif...@mid.uni-berlin.de:

> Tim Roll-Pickering wrote:
>> INIREF*I&R ~ GB wrote:
>>
>>> When will the coalition government obey the will of the people by
>>> enabling we constituents to remove an MP who is corrupt or has
>>> performed badly?
>>
>> If an MP is found to be corrupt they should have their job
>> prematurely terminated by the courts. A jury should not be replaced
>> by a megaphone shouting mob.
>>
>> Who defines "performed badly" *before* a petition can be triggered?
>>
>>> If HM government is too incompetent to legislate on this,
>>
>> I note you're not holding up a selected partial example of another
>> country with recall rules in this range (as opposed to "Recall
>> whenever the opposition can mount a sneak campaign over midterm
>> unpopularity"). Given your usual style that's telling.
>>
>>> Hold a binding referendum to introduce the "recall".
>>
>> Binding in a messy procedure is the worst of all worlds and one of
>> the reasons why so many are opposed to the mess of unfettered
>> referendums.
>>
>>> And let's add in a "piggy back" ballot proposal to give ourselves
>>> the right to obtain a referendum about any public issue (very useful
>>> if gov. "forgets" something important).
>>
>> No. You get the people to turn out first to make your case
>> convincing. Remember those 9% turnout referendums on Sunday openings
>> of pubs?
>>
>
> To help maintain the high quality of Usenet, why do you not try to
> answer the main question of the opening post?

> The ruling coalition promised (2010) to introduce The Recall (sacking
> of MP by her/his voters). Why have they failed to do this? How can
> this failure be corrected?
> ------------------------------

You can start with the 9%turnout comment and work back if you wish.
-----------------------

INIREF replies:

Answer the question in the opening post, dragon.
> The ruling coalition promised (2010) to introduce The Recall (sacking
> of MP by her/his voters). Why have they failed to do this? How can
> this failure be corrected?

To find out how constituents can sack an MP who has represented them
badly see <http://www.iniref.org/recal...

To find out more about "The Recall" see
Direct Democracy: The Politics of Initiative, Referendum, and Recall:
Thomas E. Cronin


jt

1/26/2013 7:37:00 PM

0

INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in news:amio70F8t2aU1
@mid.uni-berlin.de:

> soupdragon wrote:
>
> (from google.com -- problem with newsreader)
> INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in
> news:amif...@mid.uni-berlin.de:
>
> > Tim Roll-Pickering wrote:
> >> INIREF*I&R ~ GB wrote:
> >>
> >>> When will the coalition government obey the will of the people by
> >>> enabling we constituents to remove an MP who is corrupt or has
> >>> performed badly?
> >>
> >> If an MP is found to be corrupt they should have their job
> >> prematurely terminated by the courts. A jury should not be replaced
> >> by a megaphone shouting mob.
> >>
> >> Who defines "performed badly" *before* a petition can be triggered?
> >>
> >>> If HM government is too incompetent to legislate on this,
> >>
> >> I note you're not holding up a selected partial example of another
> >> country with recall rules in this range (as opposed to "Recall
> >> whenever the opposition can mount a sneak campaign over midterm
> >> unpopularity"). Given your usual style that's telling.
> >>
> >>> Hold a binding referendum to introduce the "recall".
> >>
> >> Binding in a messy procedure is the worst of all worlds and one of
> >> the reasons why so many are opposed to the mess of unfettered
> >> referendums.
> >>
> >>> And let's add in a "piggy back" ballot proposal to give ourselves
> >>> the right to obtain a referendum about any public issue (very
useful
> >>> if gov. "forgets" something important).
> >>
> >> No. You get the people to turn out first to make your case
> >> convincing. Remember those 9% turnout referendums on Sunday openings
> >> of pubs?
> >>
> >
> > To help maintain the high quality of Usenet, why do you not try to
> > answer the main question of the opening post?
>
>
> You can start with the 9%turnout comment and work back if you wish.
> -----------------------
>
> INIREF replies:
>
> Answer the question in the opening post, dragon.

The questions were answered by Tim. I already told you that. It
now appears you are now reduced to dishonest editing in an attempt
to evade the point. Here's what I actually wrote, but you chose to
delete:

> He did. In a line by line rebuttal of your points. Now, to help
> maintain the high quality of Usenet, why don't _you_ address his points
> rather than your usual responses of either evasion, as shown above. or
> more commonly, the tumbleweed 'response'? You can start with the 9%
> turnout comment and work back if you wish.

Anything else you're being dishonest about?

I&R ~ GB

1/26/2013 10:53:00 PM

0

soupdragon wrote:
(from google.com)
INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in news:amio70F8t2aU1
@mid.uni-berlin.de:

> You can start with the 9%turnout comment and work back if you wish.
> -----------------------
>
> INIREF replies:
>
> Answer the question in the opening post, dragon.

The questions were answered by Tim.
-------------
Wrong.

See newspaper article about recall in UK:
Sunday 15 April 2012
<http://www.heraldscotland.com/comment/columnists/we-cant-get-rid-of-them-that-would-be-too-much-like-democracy.17...

We can't get rid of them ... that would be too much like democracy
Ian Bell

---------------
<www.iniref.org>

jt

1/27/2013 11:32:00 AM

0

INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in
news:amj52eFbq2eU1@mid.uni-berlin.de:

> soupdragon wrote:
> (from google.com)
> INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in news:amio70F8t2aU1
> @mid.uni-berlin.de:

**[material deliberately deleted by INREF restored]**

> > Tim Roll-Pickering wrote:
> >> INIREF*I&R ~ GB wrote:
> >>
> >>> When will the coalition government obey the will of the people by
> >>> enabling we constituents to remove an MP who is corrupt or has
> >>> performed badly?
> >>
> >> If an MP is found to be corrupt they should have their job
> >> prematurely terminated by the courts. A jury should not be replaced
> >> by a megaphone shouting mob.
> >>
> >> Who defines "performed badly" *before* a petition can be triggered?
> >>
> >>> If HM government is too incompetent to legislate on this,
> >>
> >> I note you're not holding up a selected partial example of another
> >> country with recall rules in this range (as opposed to "Recall
> >> whenever the opposition can mount a sneak campaign over midterm
> >> unpopularity"). Given your usual style that's telling.
> >>
> >>> Hold a binding referendum to introduce the "recall".
> >>
> >> Binding in a messy procedure is the worst of all worlds and one of
> >> the reasons why so many are opposed to the mess of unfettered
> >> referendums.
> >>
> >>> And let's add in a "piggy back" ballot proposal to give ourselves
> >>> the right to obtain a referendum about any public issue (very
> >>> useful if gov. "forgets" something important).
> >>
> >> No. You get the people to turn out first to make your case
> >> convincing. Remember those 9% turnout referendums on Sunday
> >>openings of pubs?
> >>
> >
> > INIREF replies:
> >
> > Answer the question in the opening post, dragon.
>
>> The questions were answered by Tim.

> Wrong.

[second dishonest deletia restored]:-

** I already told you that above. It
** now appears you are now reduced to dishonest editing in an attempt
** to evade the point. Here's what I actually wrote, but you chose to
** delete:-
>
** He did. In a line by line rebuttal of your points. Now, to help
** maintain the high quality of Usenet, why don't _you_ address
** his points rather than your usual responses of either evasion,
** as shown above. or
** more commonly, the tumbleweed 'response'? You can start with the 9%
** turnout comment and work back if you wish.
*
* Anything else you're being dishonest about?
* -------------


Why do you persist with this dishonesty by deletion of material
you don't like?. I've restored what he's said, now why don't you
address his points rather than playing fast and loose with the editor?
It makes people wonder what else you're being less than honest about.

jt

1/27/2013 11:44:00 AM

0

INIREF*I&R ~ GB <infoTAKE@OUTiniref.org> wrote in
news:amj52eFbq2eU1@mid.uni-berlin.de:

> See newspaper article about recall in UK:
> Sunday 15 April 2012
> <http://www.heraldscotland.com/comment/columnists/we-cant-g...
th
> em-that-would-be-too-much-like-democracy.17299006>
>
> We can't get rid of them ... that would be too much like democracy
> Ian Bell
>

This would be the Ian Bell that says in the same article:-

"Plebiscites could cause a few difficulties, of course. For one thing,
they could lead to an endless round of by-elections. For another,
criteria would be hard to establish. The allegations against Walker
are, as he observes, unproven"

and

"Some will tell you that the recall system used in California and
elsewhere is a recipe for chaos, that it is manipulated for party
political purposes, and that it does nothing to improve governance."


and

"Mobs - demonstrators, if you prefer - made the Arab spring."

...and that's gone really well, with Egypt being hijacked, Libya
in disarray and thought to be the arms route for the rebellion in
Mali.

Oops!!