Files
2015-07-22 22:27:50 +03:00

33 lines
866 B
VimL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
" Vim plugin
" Purpose: Intelligently create content for PISI's translations.xml files
" Author: İnanç Yıldırgan
" Copyright: Copyright (c) 2008 İnanç Yıldırgan
" Licence: You may redistribute this under the terms of the GNU GPL v2..
if &compatible || v:version < 603
finish
endif
fun! MakeNewTranslations()
set nopaste
0 put = '<?xml version=\"1.0\" ?>'
put = '<PISI>'
put = ' <Source>'
put = ' <Name></Name>'
put = ' <Summary xml:lang=\"\"></Summary>'
put = ' <Description xml:lang=\"\"></Description>'
put = ' </Source>'
put = '</PISI>'
14
endfun
com! -nargs=0 MakeNewTranslations call MakeNewTranslations()
augroup MakeNewTranslations
au!
autocmd BufNewFile translations.xml call MakeNewTranslations()
augroup END
" vim: set et foldmethod=marker : "