ysyx:0002:Use of Linux

[ANNONCEMENT]
ysyx的课程规范实则是不鼓励分享的,发在这里其实只是做一个类似个人存档的东西或者跟没参加的同学分享,再加上我比较菜,所以参加这个课程的同学慎入。
0002:Use of Linux
Install the virtual machine
DEBUG
如果没有跳过Update,只能用Aptitude依次降级来安装工具。DEBUG
装中文包,删掉Thunderbird & LibreOffice
Use of vim
Note on vim (written in vim)
- move hjkl
- quit without save :q!
quit saved :wq - delete a letter x
- insert i
append a
append at the end of the line A - delete d+MOTION
delete several lines ndd - (TIMES)MOTION s start of next word
e end of this word
0 start of this line - undo last command u
whole line U
redo Ctrl-R - put p
- replace r
- change a few words ce
change the whole line cc
change the rest of the line c$
cw,c(TIMES)MOTION… - line info Ctrl-g
bottom of file G
start of file gg
to specific line (POSITION)G - search /+key
next n
op direction N
search in backward position ?
go back Ctrl-0
go forward Ctrl-I - look fpr match %
- s/ORIGIN/NEW substitude 1 time
…/g substitude globally
a,b… substitude from line a to line b
…/gc substitude globally with enquiry for each - (: to the command-line)use external command !
- save a copy w
- visual select v+MOTION
- retrieve from file r+FILENAME
output of external commmand :r !… - open up a new line below o
open up a new line above O - replace mode(like insert key in Windows) R
- copy y (yw,yy,y+Visual mode…)
paste p - set option set [OPTIONNAME]
set off set [noOPTIONNAME] - help :help NAME
- Ctrl-d complement list
TAB complement
Learning Vim is like breaking the bones to let one grow taller!
230328.Jackcui.NJU
- Post title:ysyx:0002:Use of Linux
- Post author:Jackcui
- Create time:2023-03-28 21:46:35
- Post link:https://jackcuii.github.io/2023/03/28/ysyx0002/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments