summaryrefslogtreecommitdiff
path: root/runtime/tutor/tutor.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/tutor/tutor.vim')
-rw-r--r--runtime/tutor/tutor.vim11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/tutor/tutor.vim b/runtime/tutor/tutor.vim
index 8621ae243..29eda4c37 100644
--- a/runtime/tutor/tutor.vim
+++ b/runtime/tutor/tutor.vim
@@ -1,6 +1,6 @@
" Vim tutor support file
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
-" Last Change: 2005 Mar 15
+" Last Change: 2005 Oct 16
" This small source file is used for detecting if a translation of the
" tutor file exist, i.e., a tutor.xx file, where xx is the language.
@@ -83,6 +83,15 @@ if s:ext =~? '\.pl'
endif
endif
+" The Turkish tutor is available in two encodings, guess which one to use
+if s:ext =~? '\.tr'
+ if &enc == "utf-8"
+ let s:ext = ".tr.utf-8"
+ elseif &enc == "iso-8859-9"
+ let s:ext = ".tr.iso9"
+ endif
+endif
+
" The Greek tutor is available in two encodings, guess which one to use
if s:ext =~? '\.gr' && &enc =~ 737
let s:ext = ".gr.cp737"