Skip to content

Instantly share code, notes, and snippets.

@yuya-matsushima
Created June 1, 2011 15:11
Show Gist options
  • Select an option

  • Save yuya-matsushima/1002499 to your computer and use it in GitHub Desktop.

Select an option

Save yuya-matsushima/1002499 to your computer and use it in GitHub Desktop.
function Cucfirst(str)
let fname=strpart(a:str,0,strlen(a:str)-4)
let cap=substitute(l:fname, '\w\+', '\u\0', "")
return l:cap
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment