Skip to content

Instantly share code, notes, and snippets.

@xsb
Created July 13, 2013 17:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xsb/5991451 to your computer and use it in GitHub Desktop.
Save xsb/5991451 to your computer and use it in GitHub Desktop.
__ _____ __ __
\ \ / /_ _| \/ |
\ \ / / | || |\/| |
\ 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
VISUAL MODE COMMAND-LINE
_____ _ _ _
| ____|__| (_) ___(_) ___
| _| / _` | |/ __| |/ _ \
| |__| (_| | | (__| | (_) |
|_____\__,_|_|\___|_|\___/
Desplaçament bàsic
------------------
hjkl gj gk
w b W B
0 $ ^
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