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
tmodules to find a mapping between submodule path and repository url for the initial clone of all submodules. The script is used during cgit builds to enable automatic download and checkout of the git git repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-11Added git as a submoduleLars Hjemli This commit adds the subdirectory 'git' as a submodule containing the git git repository, but doesn't add support for automatically cloning the submodule. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-09Add support for downloading single blobsLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-08ui-view: show pathname if specified in querystringLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-21Layout updateLars Hjemli 2007-02-08Make snapshot feature configurableLars Hjemli Snapshots can now be enabled/disabled by default for all repositories in cgitrc with param "snapshots". Additionally, any repo can override the default setting with param "repo.snapshots". By default, no snapshotting is enabled. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-08Add support for snapshotsLars Hjemli Make a link from the commit viewer to a snapshot of the corresponding tree. Currently only zip-format is supported. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-05cgit v0.2Lars Hjemli Main changes since v0.1: -list tags in repo summary -allow search in log-view -read repository paths from cgitrc Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli This should improve the installation a little, especially since the new options are mentioned in the README. Also, add a make-rule to build the git binaries if necessary + a dependency between cgit and libgit.a. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Update cgitrc templateLars Hjemli Make the descriptions more helpfull. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Add support for lightweight tagsLars Hjemli There is nothing bad about a tag that has no tag-object, but the old code didn't handle such tags correctly. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Read repo-info from /etc/cgitrcLars Hjemli This makes cgit read all repo-info from the configfile, instead of scanning for possible git-dirs below a common root path. This is primarily done to get better security (separate physical path from logical repo-name). In /etc/cgitrc each repo is registered with the following keys: repo.url repo.name repo.path repo.desc repo.owner Note: *Required keys are repo.url and repo.path, all others are optional *Each occurrence of repo.url starts a new repository registration *Default value for repo.name is taken from repo.url *The value of repo.url cannot contain characters with special meaning for urls (i.e. one of /?%&), while repo.name can contain anything. Example: repo.url=cgit-pub repo.name=cgit/public repo.path=/pub/git/cgit repo.desc=My public cgit repo repo.owner=Lars Hjemli repo.url=cgit-priv repo.name=cgit/private repo.path=/home/larsh/src/cgit/.git repo.desc=My private cgit repo repo.owner=Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Do not die if tag has no messageLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-03Fix search for non-virtual urlsLars Hjemli When cgit don't use virtual urls, the current repo and page url parameters must be included in the search form as hidden input fields. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-01-28Update README with install/config informationLars Hjemli