Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
dw
D
dd
Copyright 2014-2005, Free Electrons, http://free-electrons.com. Latest update: Dec 12, 2015
Free to share under the terms of the Creative Commons Attribution-ShareAlike 3.0 license. Sources: http://git.freeelectrons.com/training-materials. Updates: http://free-electrons.com/doc/training/embedded-linux. Thanks to: Liubo
Chen.
Repeating commands
[Esc]
Replacing strings
Can also be done manually, searching and replacing once, and then using
n (next occurrence) and . (repeat last edit).
n,ps/str1/str2/g between line numbers n and p, substitute all (g:
global) occurrences of str1 by str2.
1,$s/str1/str2/g in the whole file ($: last line), substitute all
occurrences of str1 by str2.
Misc
[Ctrl] l redraw the screen.
J
join the current line with the next one
u
undo the last action
Going further
yy
p
P