Mercurial > vim
view runtime/keymap/croatian.vim @ 8993:2085167ab1b0 v7.4.1782
commit https://github.com/vim/vim/commit/fca66003053f8c0da5161d1fe4b75b3a389934b5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 23 15:30:09 2016 +0200
patch 7.4.1782
Problem: strcharpart() does not work properly with some multi-byte
characters.
Solution: Use mb_cptr2len() instead of mb_char2len(). (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Apr 2016 15:45:04 +0200 |
parents | 18ee39301b82 |
children |
line wrap: on
line source
let s:encoding = &enc if s:encoding == 'latin1' if has("unix") let s:encoding = 'iso-8859-2' else let s:encoding = 'cp1250' endif endif if s:encoding == 'utf-8' source <sfile>:p:h/croatian_utf-8.vim elseif s:encoding == 'cp1250' source <sfile>:p:h/croatian_cp1250.vim else source <sfile>:p:h/croatian_iso-8859-2.vim endif