-
-
Save duub/6260464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__ _____ __ __ | |
\ \ / /_ _| \/ | | |
\ \ / / | || |\/| | | |
\ V / | || | | | | |
\_/ |___|_| |_| | |
xsb | |
Summer Camp Garrotxa | |
2013 | |
_ _ _ _ _ | |
| | | (_)___| |_ ___ _ __(_) __ _ | |
| |_| | / __| __/ _ \| '__| |/ _` | | |
| _ | \__ \ || (_) | | | | (_| | | |
|_| |_|_|___/\__\___/|_| |_|\__,_| | |
Visual ex - Bill Joy (1976) | |
Visual ex (vi) - Bill Joy (1978) BSD Unix | |
Vi IMproved - Bram Mooleaar (1991) Amiga | |
Vi IMproved - Bram Mooleaar (1992) UNIX | |
__ __ _ | |
| \/ | ___ __| | ___ ___ | |
| |\/| |/ _ \ / _` |/ _ \/ __| | |
| | | | (_) | (_| | __/\__ \ | |
|_| |_|\___/ \__,_|\___||___/ | |
NORMAL MODE INSERT MODE | |
(aka command mode (insert text mode) | |
navigate and mani- | |
pulate text) | |
VISUAL MODE COMMAND-LINE | |
(select text) (Ex mode, execute some | |
actions, like :w or / ) | |
_____ _ _ _ | |
| ____|__| (_) ___(_) ___ | |
| _| / _` | |/ __| |/ _ \ | |
| |__| (_| | | (__| | (_) | | |
|_____\__,_|_|\___|_|\___/ | |
Desplaçament bàsic | |
------------------ | |
hjkl gj gk | |
h:left, j:down, k:up, l:left | |
w e b W E B | |
w:start of next word, e: end of next word, b:start of previous word | |
0 $ ^ | |
0:start of line: $: end of line | |
f t F T ; , | |
() {} | |
Del mode normal al modo insertar | |
-------------------------------- | |
i a I A o O | |
Eliminar, Copiar, enganxar, substituïr | |
-------------------------------------- | |
d x X | |
y p | |
v V c^v | |
< > | |
r s cw | |
u c^r | |
Repetició | |
--------- | |
. | |
Desplaçament avançat, blocs i cerca | |
----------------------------------- | |
HML c^b c^f | |
gg G nºgg | |
/ ? * # n N | |
blocs " ' ( [ <tag> % | |
FItxers / Buffers | |
----------------- | |
:e :w :x :q | |
:ls | |
:bad | |
:bn :bp | |
:bd | |
Substitució | |
----------- | |
:s/old/new/g :%s/old/new/gc | |
Execució | |
-------- | |
:! <command> % | |
Autocompletar | |
------------- | |
c^n | |
____ __ _ _ | |
/ ___|___ _ __ / _(_) __ _ _ _ _ __ __ _ ___(_) ___ | |
| | / _ \| '_ \| |_| |/ _` | | | | '__/ _` |/ __| |/ _ \ | |
| |__| (_) | | | | _| | (_| | |_| | | | (_| | (__| | (_) | | |
\____\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\___|_|\___/ | |
|___/ | |
OEF :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment