- 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)
-
Error: Failed with result 'exit-code' Solution: 1) Open the file meta.properties . In my case, it was located at...
-
1. Dynamic Segment A Dynamic Segment can be created by wrapping a folder's name in square brackets: [folderName]. For example, [id] or [...
-
1. 内建对象: 包括 object function array 等 2. 数组 Array 也是一个对象 1)创建数组对象:var arr = new Array(); 2)添加元素:数组[索引] =...
No comments:
Post a Comment