diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-09-02 12:50:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-09-02 12:50:52 +0000 |
commit | d9380f5c6d726c90a64697070f57b132ad9cba57 (patch) | |
tree | 915b04a65912c72d059b452b71dfb835f8051fab /runtime/tutor/tutor.vim | |
parent | 42dd2a16bf0bf0886ff628c3899c903427f697c5 (diff) |
updated for version 7.0-079v7.0.079
Diffstat (limited to 'runtime/tutor/tutor.vim')
-rw-r--r-- | runtime/tutor/tutor.vim | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/runtime/tutor/tutor.vim b/runtime/tutor/tutor.vim index 85cf4183bf..9770716f12 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: 2006 Mar 18 +" Last Change: 2006 Sep 02 " 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. @@ -103,11 +103,15 @@ if s:ext =~? '\.sk' && &enc =~ 1250 let s:ext = ".sk.cp1250" endif -" The Russian tutor is available in two encodings, guess which one to use. -" This segment is from the above lines and modified by -" Alexey I. Froloff <raorn@altlinux.org> for Russian vim tutorial -if s:ext =~? '\.ru' && &enc =~ 1251 - let s:ext = ".ru.cp1251" +" The Russian tutor is available in three encodings, guess which one to use. +if s:ext =~? '\.ru' + if &enc == 'utf-8' + let s:ext = '.ru.utf-8' + elseif &enc =~ '1251' + let s:ext = '.ru.cp1251' + elseif &enc =~ 'koi8' + let s:ext = '.ru' + endif endif " Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch). |