Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (29 sloc) 1.06 KB
" ============================================================================
" version.vim
"
" File: version.vim
" Summary: Vimside Version
" Author: Richard Emberson <richard.n.embersonATgmailDOTcom>
"
" ============================================================================
" Intro: {{{1
" Might attempt to do Semantic Versioning. See http://semver.org/
" ============================================================================
let s:version_major = 1
let s:version_minor = 21
let s:version_patch = 1
let s:version_pre_release = ''
" build version is not applicable
let s:version_str = ''. s:version_major
let s:version_str .= '.'. s:version_minor
let s:version_str .= '.'. s:version_patch
if s:version_pre_release != ''
let s:version_str .= '-'. s:version_pre_release
endif
" return list of [major_nos, minor_nos, patch_nos, pre_release_str]
function! forms#version#Values()
return [ s:version_major, s:version_minor, s:version_patch, s:version_pre_release ]
endfunction
function! forms#version#Str()
return s:version_str
endfunction