comparison runtime/tutor/tutor.vim @ 24:8ff7fd162d3c v7.0016

updated for version 7.0016
author vimboss
date Mon, 13 Sep 2004 20:26:32 +0000
parents 3fc0f57ecb91
children d292c40ca788
comparison
equal deleted inserted replaced
23:3f44e9abe4ec 24:8ff7fd162d3c
1 " Vim tutor support file 1 " Vim tutor support file
2 " Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es> 2 " Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
3 " Last Change: 2004 Jun 03 3 " Last Change: 2004 Sep 06
4 4
5 " This small source file is used for detecting if a translation of the 5 " This small source file is used for detecting if a translation of the
6 " tutor file exist, i.e., a tutor.xx file, where xx is the language. 6 " tutor file exist, i.e., a tutor.xx file, where xx is the language.
7 " If the translation does not exist, or no extension is given, 7 " If the translation does not exist, or no extension is given,
8 " it defaults to the english version. 8 " it defaults to the english version.
68 let s:ext = ".zh.euc" 68 let s:ext = ".zh.euc"
69 endif 69 endif
70 endif 70 endif
71 71
72 " The Polish tutor is available in two encodings, guess which one to use. 72 " The Polish tutor is available in two encodings, guess which one to use.
73 if s:ext =~? '\.pl' && &enc =~ 1250 73 if s:ext =~? '\.pl'
74 let s:ext = ".pl.cp1250" 74 if &enc =~ 1250
75 let s:ext = ".pl.cp1250"
76 elseif &enc =~ "utf-8$"
77 let s:ext = ".pl.utf-8"
78 endif
75 endif 79 endif
76 80
77 " The Greek tutor is available in two encodings, guess which one to use 81 " The Greek tutor is available in two encodings, guess which one to use
78 if s:ext =~? '\.gr' && &enc =~ 737 82 if s:ext =~? '\.gr' && &enc =~ 737
79 let s:ext = ".gr.cp737" 83 let s:ext = ".gr.cp737"