sponsor Vim development Vim logo Vim Book Ad

basic Tip #51: Entering german umlauts

 tip karma   Rating 34/16, Viewed by 1343 

created:   March 15, 2001 1:52      complexity:   basic
author:   Anonymous      as of Vim:   5.7

To enter german umlauts (or any other of those weired
characters) not available on your keyboard use 'digraphs':

In insert-mode type for example:
    
     CTRL-K "a

     CTRL-K ^e

which gives an 'ä' and 'e' with a hat.

You can also set the digraph option:

    :set digraph (or :set dg)

With digraph option set you can enter

    " <BS> a

    ^ <BS> e

which gives the same result.

To get a list of currently defined digraphs type

   :dig[graphs]

For more information about defining and using digraphs refer to:

:help digraph.txt

 rate this tip  Life Changing Helpful Unfulfilling 

<<Recovering files | Scrolling synchronously >>

Additional Notes

[email protected], August 4, 2002 14:13
A little supplement:

German umlauts are: ä/Ä, ö/Ö, ü/Ü , and moreover there is 'ß'.

These are CTRL-K plus:
a" resp A"
o" resp O"
u" resp U"
ss

-- Examples: --
ähnlich = similar
Röhre = tube
müde = tired
Straße = street

-- Some french words: --
René - popular first name
Café - coffee house
Ampère - French physicist, 1775 - 1836

The 'e' with a hat (ê) is not german, it's french.

Øl in Danish is beer.


Joachim Hofmann (Schuttberg)
[email protected], April 28, 2004 9:18
The examples given have the key sequences reversed.

As Joachim says, you enter a : for umlauted "a", not : a.  This applies
to both Ctrl-K and digraph mode entry.
[email protected], April 28, 2004 9:25
Both the original entry here and Joachim say to enter
the letter to umlaut and " (double-quote).  For my version of
vim at least, you use colons not double-quote, as you can
clearly see by giving the ":dig" command.

umlauted a = a:, either Ctrl-K a :  OR   a <BS> : (latter if
digraph mode is on).
Anonymous, September 25, 2004 7:25
alt+d seems to give me an ae too...
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo