- 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)
-
1. 一个开源的AI社区,提供模型,数据集,一些工具等 2. Spaces 应用:通过网页端展示自己模型的输入输出和别的交互 3. Gradio:给任意python函数加上UI页面的库,用于页面展示 4. 几个重要的库:Transformer / Datasets / Evalu...
-
1. Dynamic Segment A Dynamic Segment can be created by wrapping a folder's name in square brackets: [folderName]. For example, [id] or [...
-
apt方法: 在Dockerfile中添加如下两句代码: RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean * ...
No comments:
Post a Comment