vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

convert.vim (530B)


      1 :e sr.aff
      2 :normal gg
      3 :normal wgu$
      4 :3d
      5 :4d
      6 :normal G
      7 :normal o
      8 :r sr-Latn.aff
      9 :%s#^\(SFX\|PFX\).*[а-џa-ž]\zs$# .#g
     10 :normal G
     11 ?SET
     12 :.,+5d
     13 :.,$s#^\(SFX\|PFX\) \zs\(\d\+\)#\= eval(submatch(2) .. ' + 1903')#
     14 :w ../sr.aff
     15 :bd!
     16 :e sr.dic
     17 :%s#a#а#g
     18 :%s#e#е#g
     19 :normal G
     20 :normal o
     21 :r sr-Latn.dic
     22 :normal 201dd
     23 :.,$s#/\zs\(\d\+\)\(,\(\d\+\)\)\?$#\=(submatch(2) == '') ? eval(submatch(1) + '1903') : eval(submatch(1) + '1903') .. ',' .. eval(submatch(3) + '1903')#
     24 :normal {
     25 :normal dd
     26 :normal gg
     27 :normal C502898
     28 :w ../sr.dic
     29 :bd!
     30 :q!