Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
public:computer:vim_cheat_sheet [2022/09/20 16:27] – alex | public:computer:vim_cheat_sheet [2022/12/28 17:43] – [Examples] alex |
---|
* '':%s/^(\d+.)/\n\1/g'': 라인 첫번째에 ''숫자(1자이상).''으로 된 항목 앞에 개행문자 추가 (문서전체적용) | * '':%s/^(\d+.)/\n\1/g'': 라인 첫번째에 ''숫자(1자이상).''으로 된 항목 앞에 개행문자 추가 (문서전체적용) |
* '':%s/^(\s+)*/\1*/g'' : 라인 앞에 ''* '' 추가 (문서전체적용) | * '':%s/^(\s+)*/\1*/g'' : 라인 앞에 ''* '' 추가 (문서전체적용) |
| * ":%s/^(?:(?:1[6-9]|[2-9]\d)?\d{2})(?:(?:(\/|-|\.)(?:0?[13578]|1[02])\1(?:31))|(?:(\/|-|\.)(?:0?[13-9]|1[0-2])\2(?:29|30)))\$|^(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(\/|-|\.)0?2\3(?:29)\$|^(?:(?:1[6-9]|[2-9]\d)?\d{2})(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:0?[1-9]|1\d|2[0-8])\$/g" : date validation <sxh regex> |
| /^(?:(?:1[6-9]|[2-9]\d)?\d{2})(?:(?:(\/|-|\.)(?:0?[13578]|1[02])\1(?:31))|(?:(\/|-|\.)(?:0?[13-9]|1[0-2])\2(?:29|30)))$| |
| ^(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(\/|-|\.)0?2\3(?:29)$| |
| ^(?:(?:1[6-9]|[2-9]\d)?\d{2})(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:0?[1-9]|1\d|2[0-8])$/gm</sxh> |
| * ":%s/^\d{4}(\-|\/)(0?[1-9]|1[012])(\-|\/)(0[1-9]|[12][0-9]|3[01]|[1-9])" : 날짜형식 yyyy-mm-dd, yyyy/mm/dd, yyyy/m/d, yyyy-m-d. |
| |
===== References ===== | ===== References ===== |
| *{{youtube>cY0JxzENBJg}} https://youtu.be/cY0JxzENBJg |
| * command mode / edit mode |
| * i |
| * :q, :q!, :w, :w!, :wq, wq! |
| * <esc> i, a, I, A |
| * h, j, k, l, 0, $, w, b, 3w, 8w, |
| * H 화면위, M 화면 중간, L 화면끝, gg, G, 20G, ^u, ^d, {, } |
| * x, dd yy, p, *p |
| * command + object; d3w, dit, d, y, c, 3w, 3b, aw, at, ap, as, it, i", ip |
| * ., u, ^R |
| * **daw** delete a word, di{, di(, da(, di', da', ci[, df(, dt(, d/(sh, d/use |
| * /, +n, +N |
| * v, vaw, ^V |
* [[https://medium.com/sunhyoups-story/vim-%EC%97%90%EB%94%94%ED%84%B0-%EC%9D%B4%EC%81%98%EA%B2%8C-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0-5b6b8d546017|vim 에디터 이쁘게 사용하기]] | * [[https://medium.com/sunhyoups-story/vim-%EC%97%90%EB%94%94%ED%84%B0-%EC%9D%B4%EC%81%98%EA%B2%8C-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0-5b6b8d546017|vim 에디터 이쁘게 사용하기]] |
* [[https://www.lesstif.com/system-admin/vim-42074135.html|vim 메뉴 및 폰트 설정]] | * [[https://www.lesstif.com/system-admin/vim-42074135.html|vim 메뉴 및 폰트 설정]] |
* [[https://woonizzooni.tistory.com/entry/Windows10-%ED%99%98%EA%B2%BD%EC%97%90%EC%84%9C-vim-%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95|Windows10 환경에서 vim 환경 설정]] | * [[https://woonizzooni.tistory.com/entry/Windows10-%ED%99%98%EA%B2%BD%EC%97%90%EC%84%9C-vim-%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95|Windows10 환경에서 vim 환경 설정]] |
* [[http://gypark.pe.kr/wiki/Vi%EB%A1%9C%EB%AC%B8%EC%9E%90%EC%97%B4%EC%B9%98%ED%99%98%ED%95%98%EA%B8%B0|Vi로문자열치환하기]] | * [[http://gypark.pe.kr/wiki/Vi%EB%A1%9C%EB%AC%B8%EC%9E%90%EC%97%B4%EC%B9%98%ED%99%98%ED%95%98%EA%B8%B0|Vi로문자열치환하기]] |
| * [[https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=nahaeya100&logNo=140122974185|이클립스 vRapper 사용하기]] |
| * [[https://m.blog.naver.com/quantumgaea/222160587948|vimium (chrome extension)]] |
| * [[https://bluebreeze.co.kr/1356|Practical Vim 2판 정리 페이지 Index]] |
| * [[https://surpassing.tistory.com/914|Chrome 확장 플러그인 Vimium 커스텀 매핑]] |
| * [[https://vimium.github.io/|vimium]] |
| * [[https://github.com/philc/vimium/wiki|philc/vimium @github.com]] |
| |
| |