jump from word to word

2007-01-30 Thread Claus Atzenbeck
Hi all,

w jumps from word to word. However, it considers German umlauts
(äöüÄÖÜ) and German sz (ß) as word end. For example, w stops at the
indicated positions:

Schwämme überall.
^   ^^   ^^ ^

However, I would desire instead:

Schwämme überall.
^^  ^

Any idea how to teach Vim to consider special characters as mentioned
above as normal letters?

Thanks for any hint.
Claus

Re: jump from word to word

2007-01-30 Thread Jürgen Krämer

Hi,

Claus Atzenbeck wrote:
 
 w jumps from word to word. However, it considers German umlauts
 (äöüÄÖÜ) and German sz (ß) as word end. For example, w stops at the
 indicated positions:
 
 Schwämme überall.
 ^   ^^   ^^ ^
 
 However, I would desire instead:
 
 Schwämme überall.
 ^^  ^
 
 Any idea how to teach Vim to consider special characters as mentioned
 above as normal letters?

  :help word
  :help 'iskeyword'

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)


RE: jump from word to word

2007-01-30 Thread Roy Fulbright

Try using capital W instead.
Roy Fulbright



From: Claus Atzenbeck [EMAIL PROTECTED]
To: vim vim@vim.org
Subject: jump from word to word
Date: Tue, 30 Jan 2007 09:30:42 +0100 (CET)

Hi all,

w jumps from word to word. However, it considers German umlauts
(äöüÄÖÜ) and German sz (ß) as word end. For example, w stops at the
indicated positions:

Schwämme überall.
^   ^^   ^^ ^

However, I would desire instead:

Schwämme überall.
^^  ^

Any idea how to teach Vim to consider special characters as mentioned
above as normal letters?

Thanks for any hint.
Claus


_
Valentine’s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping 
http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095tcode=wlmtagline




RE: jump from word to word

2007-01-30 Thread Claus Atzenbeck
On Tue, 30 Jan 2007, Roy Fulbright wrote:

 Try using capital W instead.

Thanks, this helps. I read about it when I started using Vim, however,
apparently I forgot that.

Claus


Re: jump from word to word

2007-01-30 Thread A.J.Mechelynck

Claus Atzenbeck wrote:

Hi all,

w jumps from word to word. However, it considers German umlauts
(äöüÄÖÜ) and German sz (ß) as word end. For example, w stops at the
indicated positions:

Schwämme überall.
^   ^^   ^^ ^

However, I would desire instead:

Schwämme überall.
^^  ^

Any idea how to teach Vim to consider special characters as mentioned
above as normal letters?

Thanks for any hint.
Claus


:help 'iskeyword'


Best regards,
Tony.


Re: jump from word to word

2007-01-30 Thread Claus Atzenbeck
On Tue, 30 Jan 2007, Jürgen Krämer wrote:

 note that W uses Vim's definition of WORD, i.e., any sequence of
 non-blank characters separated by white space is considered to be a
 WORD. In practice this means that W will not stop at commas, dots,
 exclamation marks, quotes, etc. It might be better to

   :set iskeyword=@,48-57,_,192-255

 which considers all characters where the C runtime function isalpa()
 returns TRUE, all digits, the underscore, and all characters in the
 range from 192 to 255 to be part of a word. Then w should work as
 wanted.

Perfect. This is exactly what I wanted. Thanks!

Claus