polish-slash.vim 709 B

12345678910111213141516171819202122232425262728
  1. " Polish letters under VIM >= 6
  2. " Maintainer: HS6_06 <hs6_06@o2.pl>
  3. " Last changed: 2005 Jan 12
  4. " Current version: 1.0.2
  5. " History:
  6. " 2005.01.12 1.0.2 keymap_name shortened, added Current version, History
  7. " 2005.01.10 1.0.1 un*x line ends for all files
  8. " 2005.01.09 1.0.0 Initial release
  9. let encoding = &enc
  10. if encoding == 'latin1'
  11. if has("unix")
  12. let encoding = 'iso-8859-2'
  13. else
  14. let encoding = 'cp1250'
  15. endif
  16. endif
  17. if encoding == 'utf-8'
  18. source <sfile>:p:h/polish-slash_utf-8.vim
  19. elseif encoding == 'cp1250'
  20. source <sfile>:p:h/polish-slash_cp1250.vim
  21. elseif encoding == 'iso-8859-2'
  22. source <sfile>:p:h/polish-slash_iso-8859-2.vim
  23. else
  24. source <sfile>:p:h/polish-slash_cp852.vim
  25. endif