comparison runtime/tutor/tutor.vim @ 557:862863033fdd v7.0158

updated for version 7.0158
author vimboss
date Wed, 23 Nov 2005 21:25:05 +0000
parents d292c40ca788
children d20041a02ee5
comparison
equal deleted inserted replaced
556:f9eaf0a9872d 557:862863033fdd
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: 2005 Mar 15 3 " Last Change: 2005 Oct 16
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.
81 elseif &enc =~ "utf-8$" 81 elseif &enc =~ "utf-8$"
82 let s:ext = ".pl.utf-8" 82 let s:ext = ".pl.utf-8"
83 endif 83 endif
84 endif 84 endif
85 85
86 " The Turkish tutor is available in two encodings, guess which one to use
87 if s:ext =~? '\.tr'
88 if &enc == "utf-8"
89 let s:ext = ".tr.utf-8"
90 elseif &enc == "iso-8859-9"
91 let s:ext = ".tr.iso9"
92 endif
93 endif
94
86 " The Greek tutor is available in two encodings, guess which one to use 95 " The Greek tutor is available in two encodings, guess which one to use
87 if s:ext =~? '\.gr' && &enc =~ 737 96 if s:ext =~? '\.gr' && &enc =~ 737
88 let s:ext = ".gr.cp737" 97 let s:ext = ".gr.cp737"
89 endif 98 endif
90 99