Skip to content

Instantly share code, notes, and snippets.

@nicwest
Created January 3, 2015 23:09
Show Gist options
  • Save nicwest/5b4b1f83c4498e228805 to your computer and use it in GitHub Desktop.
Save nicwest/5b4b1f83c4498e228805 to your computer and use it in GitHub Desktop.
function! templates#vars#vim_version () abort
let l:patch = filter(range(0,999), 'has("patch" . v:val)')[-1]
return string(v:version / 100.0) . '.' . l:patch
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment