annotate runtime/keymap/slovak.vim @ 26254:3a13efec0016
v8.2.3658
patch 8.2.3658: duplicate code in xxd
Commit: https://github.com/vim/vim/commit/48608b4a4bfab4b9c0c9199d57b7e876c56db74c
Author: DungSaga <dungsaga@users.noreply.github.com>
Date: Wed Nov 24 11:18:07 2021 +0000
patch 8.2.3658: duplicate code in xxd
Problem: Duplicate code in xxd.
Solution: Merge duplicated code. Add more tests. (closes https://github.com/vim/vim/issues/9192)
author |
Bram Moolenaar <Bram@vim.org> |
date |
Wed, 24 Nov 2021 12:30:04 +0100 |
parents |
3fc0f57ecb91 |
children |
|
rev |
line source |
7
|
1 let encoding = &enc
|
|
2 if encoding == 'latin1'
|
|
3 if has("unix")
|
|
4 let encoding = 'iso-8859-2'
|
|
5 else
|
|
6 let encoding = 'cp1250'
|
|
7 endif
|
|
8 endif
|
|
9
|
|
10 if encoding == 'utf-8'
|
|
11 source <sfile>:p:h/slovak_utf-8.vim
|
|
12 elseif encoding == 'cp1250'
|
|
13 source <sfile>:p:h/slovak_cp1250.vim
|
|
14 else
|
|
15 source <sfile>:p:h/slovak_iso-8859-2.vim
|
|
16 endif
|