view runtime/spell/sr/convert.vim @ 31365:040b59b92dca v9.0.1016

patch 9.0.1016: screenpos() does not count filler lines for diff mode Commit: https://github.com/vim/vim/commit/1cb16c3a20a9d17df1a8dc3813ef64dc98e42637 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 5 22:26:44 2022 +0000 patch 9.0.1016: screenpos() does not count filler lines for diff mode Problem: screenpos() does not count filler lines for diff mode. Solution: Add filler lines. (closes 11658)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Dec 2022 23:30:04 +0100
parents 912224cab37f
children
line wrap: on
line source

:e sr.aff
:normal gg
:normal wgu$
:3d
:4d
:normal G
:normal o
:r sr-Latn.aff
:%s#^\(SFX\|PFX\).*[а-џa-ž]\zs$# .#g
:normal G
?SET
:.,+5d
:.,$s#^\(SFX\|PFX\) \zs\(\d\+\)#\= eval(submatch(2) .. ' + 1903')#
:w ../sr.aff
:bd!
:e sr.dic
:%s#a#а#g
:%s#e#е#g
:normal G
:normal o
:r sr-Latn.dic
:normal 201dd
:.,$s#/\zs\(\d\+\)\(,\(\d\+\)\)\?$#\=(submatch(2) == '') ? eval(submatch(1) + '1903') : eval(submatch(1) + '1903') .. ',' .. eval(submatch(3) + '1903')#
:normal {
:normal dd
:normal gg
:normal C502898
:w ../sr.dic
:bd!
:q!