titlecase.vim : Convert range or visual to titlecase.
| script karma
Downloaded by 1177
Comments, bugs, improvements
script versions (upload new version)
Change a range or visual to title case, i.e.
":TitleCase<CR>" results in:
Change A Range Or Visual To Title Case, I.E.
This simple changes (via :s) \<\l (start of word, lowercase a-z) to uppercase. Probably not perfect Titlecase but works good enough for a quickie!
Remaps (with no elegance) <F5> to FeralTitleCase_Visual, change as desired.
Visual method works for single line visuals only, multi line it tries to be clever and makes a mess.. use with caution, single (part of) line works fine though. (needs to have a check that say I don't do multi line visuals!; or only char wise visuals or something).
Range Command (defaults to current line) is:TitleCase
Its small, crude and dirty. But it works :)
|Place in plugin folder
Uninstall remove or rename script file.
Click on the package to download.
ip used for rating: 188.8.131.52