Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Vim Recipes.
>Select the text you want to convert, hit :, then enter the regex:
s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g.
nnoremap <A-c> :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g<CR> vnoremap <A-c> :s/\%V\(\w\)\(\w*\)\%V/\u\1\L\2/g<CR>
>Select the text you want to convert, hit :, then enter the regex:
And, even this is not completely correct. The expression will not work if you select part of a line. Your best bet would be to remap the following: To get key bindings that you like (I've defaulted to the EMacs capitalize-word binding).