- delete a whole line: dd
- copy a line: yy
- paste: p
- copy a few lines: shift+v + y
- copy a few words: v + y
- undo: u
- redo: control+r
- replace A with B: :%s,A,B,g
- add a word in the beginning of each line: ctrl+v + shift+i + "words" + esc
- exit with saving: :wq
- exit without saving: :q!
- to the top line: gg
- to the end line: shift+g
- search a word: /"word" + enter
- next: n
- previous: shift+n
- to line 100: 100 + shift+g
- to the first of the line: 0
- to the end of the line: $
- enter replace mode: shift+r
- delete all lines: Esc+gg+dG
Translate
Some commands for vim
Subscribe to:
Post Comments (Atom)
-
How to push my code to github? 0. git init (if didn't create git) 1. git add . 2. git commit -m "some comment" 3. git remote ...
-
1. Dynamic Segment A Dynamic Segment can be created by wrapping a folder's name in square brackets: [folderName]. For example, [id] or [...
-
区别: 1. HTTP 明文传输 ,数据都是未加密的,安全性较差,HTTPS(SSL+HTTP) 数据传输过程是 加密 的,安全性较好。 2. 使用 HTTPS 协议需要到 CA(Certificate Authority,数字证书认证机构) 申请证书,一般免费证书较少,因而需要...
No comments:
Post a Comment