Monday, November 19, 2012

Re: UP_CASE_VARIABLE to UpCaseVariable

On Nov 19, 2:28 pm, "Waters, Bill" <wat...@ti.com> wrote:
> Does anyone have a plugin or clever substitution that will convert from an all upper case variable (UP_CASE_VARIABLE) to a camel-case variable (UpCaseVariable), and vice versa?

" Titlecase A Line Or Selection
vnoremap \<F6> :s/\%V\<\(\w\)\(\w*\)\>/\u\1\L\2/ge<cr>
nmap \<F6> V\<F6>
imap \<F6> <esc>\<F6>i

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: