사용자 도구

사이트 도구


vim:search

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
vim:search [2016/01/25 01:18]
kwon37xi
vim:search [2016/03/12 17:16]
kwon37xi
줄 15: 줄 15:
 /CopyRight\C : 대소문자 체크 /CopyRight\C : 대소문자 체크
 </code> </code>
 +
 +===== search/replace with input =====
 +  * [[http://stackoverflow.com/questions/35915448/vim-find-all-occurences-and-replace-with-input|VIM find all occurences and replace with input]]
 +  * 단어를 검색하고 대체할 문자열을 입력받아서 대체하는 방법
 +
 +<code>
 +:%s/찾을문자열/\=input('replace <'.submatch(0).'> with: ')/gc
 +</code>
 +
vim/search.txt · 마지막으로 수정됨: 2016/03/12 17:16 저자 kwon37xi