-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmy.slides
192 lines (121 loc) · 2.71 KB
/
my.slides
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
acme changed my live
19-10-04.slcon6
Burg Liebenzell
eiro 47 phear.org
freenode
don't hesitate
glad to help
during the talk
during the conference
on IRC
acme
*mouse* cording? no way ...
text is action: awesome
acme
text is action: awesome 🤔
vim
vim has pipes ! awesome 🤔
:h !
formatting, spelling ...
sort, grep, sed, awk, fmt, ...
:h !
{Visual}!{filter}
!{motion}{filter}
!!{filter}
:{range}![!]{filter}
{Visual}!{filter}
:{range}w !{filter}
:{range}w !!
{Visual}!{filter}
vi 3
nvi 5
vim 14
nano ?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
vap
!grep -v nano|sort -nk2
!{motion}{filter}
|this long thing|wants to be|
|aligned|right?|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
!j
smart-columns \|
:h !
sort, grep, sed, awk, fmt, ...
filters, right?
:h !
sort, grep, sed, awk, fmt, ...
filters, right?
so are zsh, perl, sqlite, mutt, m4...
mutt
To: sl
Subject: enjoy the conference
did i thank the organizers?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
:%!as phear;mutt -H-
sqlite3
# !ap sqlite3 my.db
create table if not exists software (
name TEXT,
website TEXT
);
# !!!
insert into software values ("vim","http://www.vim.org");
select * from software;
zsh
thanks () print "thanks, $1"
for organizer ( laslo jan )
thanks $organizer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
vip!zsh
v}!zsh
V!zsh
vj!zsh
!!zsh
!!!
:h =
set ep=zsh
=ap
thanks () print "thanks, $1"
for organizer ( laslo jan )
thanks $organizer
:w !
:%w !wc
:r !
:10 !ls
navigating / filtering
gf, gF, <c-w><[fF]>
v##d
grep -RFn puts # *this* line ...
dpkg -L 9base # RTFMxUTSL
:h :make
fibo.p6
:set aw mp=perl6\ %
:nnoremap ,x :make<cr>
:h ctags
main ?
:!ctags -R
:tag main
]
rm tags
ctags --languages=+perl -R . $( perl -E 'say for grep -d, @INC' )
:h :quickfix
:make
:cwindow
:h :term
:lcd ~/src/vendor/9base
:term make
repeat 3 { print WIP; sleep 1 }
:.term ++noclose
say hello
fc or edit-command-line
autoload edit-command-line
zle -N edit-command-line
bindkey '^e' edit-command-line
bindkey -M vicmd '^e' edit-command-line
say goodbye
:wq<cr> ZZ
:q!<cr> ZQ
demos
wrapper to surfraw: no silver bullet
kill.vim