문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
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> | ||
+ |