"=============================================================================
" File: increment.vim
" Author: Stanislav Sitar (sitar@procaut.sk)
" Help:
" Put increment.vim into a plugins directory.
" Use in replacement strings
" :let I=0
" :%s/my_token_word_to_be_replaced_by_the_auto_incremented_numbers/\=INC(1)/
" or
" :let I=95
" :%s/@/\=INC(5)/
" to replace each occurrence of character @ with numbers starting with 100 and
" growing by 5 (100, 105, 110, ...)
"
" Installation: save this text as increment.vim in your plugins directory
"=========================================================================
let g:I=0
function INC(increment)
let g:I =g:I + a:increment
return g:I
endfunction