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?
Waters, Bill 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?
On Nov 19, 2012, at 6:19 PM, "John Beckett" <johnb.beck...@gmail.com> wrote:
> Waters, Bill 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?
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
If someone could describe how it helps with regard to converting
variables to/from camel case, that could be added to the first
tip above. Example commands with a brief statement of what they
do is best.
On Tue, November 20, 2012 02:32, David Fishburn wrote:
> On Nov 19, 2012, at 6:19 PM, "John Beckett" <johnb.beck...@gmail.com>
> wrote:
>> Waters, Bill 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?
-----Original Message-----
From: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] On Behalf Of John Beckett
Sent: Monday, November 19, 2012 3:20 PM
To: vim_use@googlegroups.com
Subject: RE: UP_CASE_VARIABLE to UpCaseVariable
Waters, Bill 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?
-- 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