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
ritical of their characters. They behave in nonsense ways, are mostly uncritical of their own behaviour, and don't really have arcs of growth or change. I suppose this book had a bit of one, but only in the last two chapters. 2022-07-30Add Normal PeopleJune McEnroe Unbearably straight. Eyerolls and sighs per page off the charts. Shout out to Joanna, I guess. I kinda like the lack of quotation marks though to be honest. After half of the Ruth Ozeki novel and now this, I need to get back to some genre fiction. 2022-07-26Rewrite glitch from new pngoJune McEnroe 2022-07-26Update Care with time-to-ID and piercingsJune McEnroe 2022-07-26Add -w to upJune McEnroe 2022-07-13Set push.autoSetupRemoteJune McEnroe 2022-07-08Remove TOURJune McEnroe There is not that much distinct stuff here anymore. 2022-07-03Add The Bone Shard EmperorJune McEnroe Suffers a little bit from middle book but I really enjoyed it. Read it faster than the first one too, despite its length. 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio. 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe