sponsor Vim development Vim logo Vim Book Ad

tex_umlaute : replaces German Umlauts with their TeX encodings on save

 script karma  Rating 18/6, Downloaded by 1200  Comments, bugs, improvements  Vim wiki

created by
Frank Thieme
 
script type
ftplugin
 
description
This script is based on vimscript #907 by Timo Teifel. Main reason I wrote this is that I was annoyed by the different encoded Umlauts in TeX files of different authors. Some write {\"a}, some \"a, some \"{a} some even "a.

On loading all occurances of TeX encoded German Umlauts will be replaced by their normal counterparts. On writing they are replaced by a clean standard encoding (\"a for an ä, \ss{} for ß).

Can be simply extended for other chars or utf-8 codings if there is need for...
 
install details
just put it in ~/.vim/plugin/ folder
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tex_umlaute.vim 1.2 2005-06-08 6.0 Frank Thieme - now (n)german style is really (n)german style (forgot to change after copy & paste)
tex_umlaute.vim 1.1 2005-06-03 6.0 Frank Thieme Now detects Umlauts in style \"{a} and writes \"a instead of {\"a}. This is because of kerning between letters is disturbed badly by {\"a} style.
tex_umlaute.vim 1.0 2005-04-15 6.0 Frank Thieme Initial upload
ip used for rating: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github