summary refs log tree commit diff
path: root/www/text.causal.agency/014-using-vi.7
blob: e6a6a7a00bb09819ffc56d6b552f5e58150d83d3 (plain) (blame)
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
.Dd January 11, 2021
.Dt USING-VI 7
.Os "Causal Agency"
.
.Sh NAME
.Nm Using vi
.Nd simpler tools
.
.Sh DESCRIPTION
Happy new year
and hello from
.Xr vi 1 !
I'm in the mood to post something
but not in the mood for
.Dq social
media.
This one will probably be short.
.
.Pp
Yesterday I was trying to work on sandboxing
.Xr catgirl 1
(that's the IRC client I work on)
with
.Xr pledge 2
and
.Xr unveil 2
on
.Ox ,
as suggested by the maintainer of its port.
I've done similar things before,
but only on server software
rather than user software.
.
.Pp
Anyway I was in
.Xr ssh 1
to my
.Ox
VM
.Po
sadly I don't currently have any hardware to run
.Ox
on
.Pc
using my usual editor,
which is
.Xr nvim 1 .
I'm honestly not very thrilled
with what neovim is doing lately,
but the cleaned up defaults
make my configuration files happier.
.
.Pp
The real problem with
.Xr nvim 1 ,
though,
is that it's laggy as hell on
.Ox .
There is significant delay
on every single keystroke,
as if I'm typing remotely to a server
on the other side of the world,
but this is on a local VM!
.
.Pp
So I did the only reasonable thing:
I typed
.Sy :qa
followed by
.Sy vi .
The difference was astonishing.
Typing and editing suddenly felt
.Em physical
again.
(I put that in italics even though I know it won't render.)
Not only was it a vast improvement over
.Xr nvim 1
in
.Xr ssh 1
in a VM,
it was a marked improvement over
.Xr nvim 1
running locally and natively.
.
.Pp
Now obviously
.Xr vi 1
doesn't have all the bells and whistles
of newer editors,
but of course the core editing model
that makes
.Xr vim 1
and
.Xr nvim 1
so good is there,
and in purer form,
I think.
The
.Xr vi 1
manual page
is feasible to just sit down and read,
and learn everything there is to know about the editor.
I set up a basic configuration
and got coding.
.Bd -literal -offset indent
export EXINIT='set ai ic sm sw=4 ts=4'
.Ed
.
.Pp
After I finished my
.Xr pledge 2
and
.Xr unveil 2
patch,
I was so pleased with
.Xr vi 1
that I kept on using it
yesterday and today
for other work,
and obviously to write this post.
Despite the lack of editor amenities,
its responsiveness and simplicity
are enough to make using it
.Em comfortable
and perhaps
.Em cosy .
I'm not sure I'll ever use
.Xr vi 1
full-time,
but for now I am much less likely
to launch
.Xr nvim 1 .
.
.Sh AUTHORS
.An june Aq Mt june@causal.agency
5c9e677&follow=1'>Enable cookies in titleJune McEnroe Perhaps this will make it less suspicious to Google. Who knows. 2019-09-16Use sensitivity aliases in TF2June McEnroe 2019-09-16Add The Just CityJune McEnroe 2019-09-12Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe Aborting the request and leaving data around may be causing intermittent errors. Just discard the rest of the data. 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. 2019-09-08Set title User-AgentJune McEnroe Some things don't like you if you don't send one. 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe