A presentation for Vim Editor. It introduces Vim modes, shows basic navigation controls, how to combine actions in normal mode and explains some basic automation/repition tools.
Have a look at my vim configuration in case you wanna figure out configuration and plugins I recommend.
-
h,j,k,l... left, down, up, right, use instead of arrow keys -
0... beginning of line -
^... start of text -
$... end of line -
w... move one word -
e... move to the end of a word -
b... move back a word -
x... cross out, delete character under cursor -
f<char>... find character, in current line -
F<char>... find character backwards -
t<char>... find to character, like find but stop before -
T<char>... find to backwards -
r<char>... replace character with some other char -
g... go, e.g.23ggo to line 23 -
gg... start of file -
G... end of file -
i... switch to insert mode -
a... switch to insert mode, append -
I... insert at beginning of line -
A... append at the end of line -
o... add new line and insert -
O... add new line before current and insert -
v... switch to visual mode -
V... switch to visual line mode -
<Ctrl+v>... switch to visual block mode -
d... delete, combine with navigation, likedw -
D... delete until end of line -
dd... delete line -
c... change, delete, then switch to insert -
C... change until end of line -
cc... change line -
.... repeat action -
;... repeat find -
q<char>... record automation -
@<char>... run automation -
/... switch to search -
n... next search result -
:quit,:q,ZZ... quit -
:quit!,:q!... quit ignore unsaved changes -
:write <filename>,:w <filename>... write to file -
:write,:w... write changes -
:edit <filename>,:e <filename>... edit (open) file
In order to build the slides you need to setup some (pdf)latex environment and install pandoc.
$ make presentation # build presentation, slides.pdf
$ make watch # build on change
$ make clean # remove slides