I love to work with Vim. I use the autocmd in ~.vimrc like:
:fun LastMod()
: if line("$") > 20
: let l = 20
: else
: let l = line("$")
: endif
: exe "1," . l . "g/Last modified: /s/Last modified: .*/Last modified: " .
: \ strftime("%Y %b %d")
:endfun
The Question is: How can I add or/and modify a version-number like:
from Version: v1.345 to Version: v1.346
In action when I write a shell-Script, I like to automaticly modify some Lines:
#!/bin/bash
# Last modified: <date time>
# Version: v1.23-<n>
#
(maybe thats a little more clear)