::NPTEAM:: Network Programmer Team: 프로그래밍/VIM 카테고리 글 목록
http://www.npteam.net/
2022-07-02T17:18:26+09:00
Textcube 1.10.9 : Tempo primo
[VIM] Evernote에서 편집한 문서 Redmine wiki 포멧으로 변경하기
TTF
http://www.npteam.net/935
2014-03-17T19:53:12+09:00
2014-03-17T19:53:12+09:00
Evernote에서 편집한 글을 Redmine wiki 포멧으로 변경하기<br><br><div style="padding:10px; background-color:#D0FF9D">:g/^\s*\*\s*$/d<br>:g/^$/d<br>:%s/\t/*/g</div><br><br>한 행 제거<br><div style="padding:10px; background-color:#D0FF9D">ggv^QGd</div><br><p><strong><a href="http://www.npteam.net/935?commentInput=true#entry935WriteComment">댓글 쓰기</a></strong></p>
[VIM] CamelCase 와 _(언더바) 문자열 상호 변환하기
TTF
http://www.npteam.net/934
2014-02-07T13:31:56+09:00
2014-02-07T13:30:51+09:00
출처 : http://vim.wikia.com/wiki/Converting_variables_to_or_from_camel_case<br><br><font size="3"><b>Underbar to camelcase</b></font><br>예) is_online -> isOnline<br><pre><div style="padding:10px; background-color:#D0FF9D">:s#_\(\l\)#\u\1#g</div></pre><br>예) is_online -> IsOnline<br><pre><div style="padding:10px; background-color:#D0FF9D">:s#\(\%(\<\l\+\)\%(_\)\@=\)\|_\(\l\)#\u\1\2#g</div></pre><br><font size="3"><b>Camelcase to underbar</b></font><br>예) IsOnline -> is_online<br><pre><div style="padding:10px; background-color:#D0FF9D">:s#\(\<\u\l\+\|\l\+\)\(\u\)#\l\1_\l\2#g</div></pre><br><br><p><strong><a href="http://www.npteam.net/934?commentInput=true#entry934WriteComment">댓글 쓰기</a></strong></p>
[VIM] xml에서 특정 property만 정렬하기
TTF
http://www.npteam.net/931
2014-02-07T22:05:04+09:00
2014-01-09T21:08:49+09:00
<div>
<pre class="brush; plaintext"><font size="3"><b>파일 형식을 xml로 바꾼다.</b></font><br><div style="padding:10px; background-color:#D0FF9D">set ft=xml</div><br><font size="3"><b>Name="Property" -> '[white space]- Property'</b></font>
<div style="padding:10px; background-color:#D0FF9D">:%s/^\(\s*\).*Name="\([^"]*\)".*$/\1- \2/</div>
</pre></div><p><strong><a href="http://www.npteam.net/931?commentInput=true#entry931WriteComment">댓글 쓰기</a></strong></p>