출처 : http://vim.wikia.com/wiki/Converting_variables_to_or_from_camel_case

Underbar to camelcase
예) is_online -> isOnline
:s#_\(\l\)#\u\1#g

예) is_online -> IsOnline
:s#\(\%(\<\l\+\)\%(_\)\@=\)\|_\(\l\)#\u\1\2#g

Camelcase to underbar
예) IsOnline -> is_online
:s#\(\<\u\l\+\|\l\+\)\(\u\)#\l\1_\l\2#g


2014/02/07 13:30 2014/02/07 13:30

글 걸기 주소 : 이 글에는 트랙백을 보낼 수 없습니다

덧글을 달아 주세요