CLTR-N and enter

2007-04-17 Thread Eric Leenman

Hi,

I'm using gvim 7.0 the word-completion function activated by CTRL-N.
When selecting the right word by pressing CTRL-N to step trough the list I 
select the wanted word with pressing enter.

This results in the right word, but also an extra carriage return.

Is it possible to select the right word with another key then the enter-key, 
and thus staying on the same line before CTRL-N was pressed at all?


Rgds,
Eric

_
Download Messenger. Join the i’m Initiative. Help make a difference today. 
http://im.live.com/messenger/im/home/?source=TAGHM_APR07




Re: CLTR-N and enter

2007-04-17 Thread Cyril Slobin

On 4/17/07, Eric Leenman [EMAIL PROTECTED] wrote:


Is it possible to select the right word with another key then the enter-key,
and thus staying on the same line before CTRL-N was pressed at all?


Any key expect selection movement keys works. In particular, space key
is my favorite. ;-)

--
Cyril Slobin [EMAIL PROTECTED] `When I use a word,' Humpty Dumpty said,
http://45.free.net/~slobin `it means just what I choose it to mean'


Re: CLTR-N and enter

2007-04-17 Thread homemr
On Tue, Apr 17, 2007 at 08:09:06AM +, Eric Leenman wrote:
  Hi,
  
  I'm using gvim 7.0 the word-completion function activated by CTRL-N.
  When selecting the right word by pressing CTRL-N to step trough the list I 
  select the wanted word with pressing enter.
  This results in the right word, but also an extra carriage return.
  
  Is it possible to select the right word with another key then the 
  enter-key, and thus staying on the same line before CTRL-N was pressed at 
  all?
  
  Rgds,
  Eric

Hi! You may want to check vim tip 1386 i found it very useful.
From there you can get the following map

 :inoremap expr cr pumvisible() ? \c-y : \c-gu\cr

 which lets you keep using enter to select the word you want staying in the
 same line .

 RuiH


Re: CLTR-N and enter

2007-04-17 Thread Jean-Rene David
* Eric Leenman [2007.04.17 04:15]:
 Is it possible to select the right word with
 another key then the enter-key, and thus staying
 on the same line before CTRL-N was pressed at
 all?

Yes, just continue typing...

See:

:h popupmenu-keys

It defines the only keys which are special in the
popup menu. Any other key will just have its
normal effect.

-- 
JR