사용자 도구

사이트 도구


vim:search

차이

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

차이 보기로 링크

다음 판
이전 판
vim:search [2016/01/25 01:17]
kwon37xi 만듦
vim:search [2016/03/12 17:16] (현재)
kwon37xi
줄 1: 줄 1:
 ====== vim search text ====== ====== vim search text ======
 +  * [[http://stackoverflow.com/questions/2287440/how-to-do-case-insensitive-search-in-vim|How to do case insensitive search in Vim]]
   * ''set ignorecase|ic'' : 검색시 대소문자 무시   * ''set ignorecase|ic'' : 검색시 대소문자 무시
   * ''set noignorecase|noic'' : 검색시 대소문자 체크   * ''set noignorecase|noic'' : 검색시 대소문자 체크
줄 14: 줄 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.1453654074.txt.gz · 마지막으로 수정됨: 2016/01/25 01:17 저자 kwon37xi