This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
public:computer:vim_cheat_sheet [2022/12/16 23:13] – [References] 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 ===== |
* [[https://surpassing.tistory.com/914|Chrome 확장 플러그인 Vimium 커스텀 매핑]] | * [[https://surpassing.tistory.com/914|Chrome 확장 플러그인 Vimium 커스텀 매핑]] |
* [[https://vimium.github.io/|vimium]] | * [[https://vimium.github.io/|vimium]] |
| * [[https://github.com/philc/vimium/wiki|philc/vimium @github.com]] |
| |
| |