summaryrefslogtreecommitdiffstats
path: root/runtime/tutor/tutor.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-06-25 18:50:27 +0200
committerBram Moolenaar <Bram@vim.org>2014-06-25 18:50:27 +0200
commit946e27ab65d6f5d25c449a1bf6aedd808149601f (patch)
treec89760ff953e00b9ff6f273fcaee9ba38dce4b70 /runtime/tutor/tutor.vim
parentb6da44ae82f93d036ffb2ba37a009119688d9971 (diff)
Updated runtime files.
Diffstat (limited to 'runtime/tutor/tutor.vim')
-rw-r--r--runtime/tutor/tutor.vim13
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/tutor/tutor.vim b/runtime/tutor/tutor.vim
index a48ff6a4eb..c319e009d4 100644
--- a/runtime/tutor/tutor.vim
+++ b/runtime/tutor/tutor.vim
@@ -1,7 +1,7 @@
" Vim tutor support file
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
" Maintainer: Bram Moolenaar
-" Last Change: 2012 Sep 21
+" Last Change: 2014 Jun 25
" This Vim script is used for detecting if a translation of the
" tutor file exist, i.e., a tutor.xx file, where xx is the language.
@@ -36,6 +36,8 @@ else
let s:ext = ".pl"
elseif s:lang =~ "Slovak"
let s:ext = ".sk"
+ elseif s:lang =~ "Serbian"
+ let s:ext = ".sr"
elseif s:lang =~ "Czech"
let s:ext = ".cs"
elseif s:lang =~ "Dutch"
@@ -122,6 +124,15 @@ if s:ext =~? '\.sk'
endif
endif
+" The Slovak tutor is available in two encodings, guess which one to use
+" Note that the utf-8 version is the original, the cp1250 version is created
+" from it.
+if s:ext =~? '\.sr'
+ if &enc =~ 1250
+ let s:ext = ".sr.cp1250"
+ endif
+endif
+
" The Czech tutor is available in three encodings, guess which one to use
if s:ext =~? '\.cs'
if &enc =~ 1250