Filter by tags:
622 cards matching
Showing cards 601-620 of 622
Front
(vim) apply an ex command on the whole buffer
Back
%
e.g. :%!<shell command>, :%s...
Front
(vim) apply a shell command (filter) on all lines matching a pattern
Back
:g/pattern/.!<shell command>
(the dot appears to be necessary to specify that the command should be run on each individual line)
Front
(vim) apply a substitution only on lines matching a pattern
Back
Use g and s in a standard way:
:g/<pattern>/s/<search>/<replace>
Front
(vim) "delete" ex command
Front
(vim) "copy" ex command
Front
(vim) "move" ex command
Front
(vim) move all lines matching a pattern to the end of the buffer
Front
(vim) copy all lines matching a pattern to the end of the buffer
Front
(vim) apply a normal mode sequence of commands on all lines matching a pattern
Back
:g/<pattern>/normal <command(s)>
e.g. add something at the beginning of all lines matching pattern:
:g/<pattern>/normal I<something>
Front
(vim) set a local mark here
Front
(vim) set a global mark here
Front
(vim) difference between local and global mark
Back
local marks: a-z and file-specific
global marks: A-Z and global to all files (allow to jump between files)
Front
(vim) jump to a mark
Front
(LW) summary of "Well-Kept Gardens Die By Pacifism" by Eliezer Yudkowsky
Back
censorship or at least a karma system where people do downvote are necessary for online gardens to remain high-quality.
Front
(LW) "Well-Kept Gardens Die By Pacifism" by Eliezer Yudkowsky: why is this not obvious to everyone?
Back
because we don't see we're already protected by walls, like it's easy to be a nonviolent pacifist when the country is protected by the military and the city already has police
Front
Cargo Cult Science: original example
Back
In the South
Seas there is a Cargo Cult of people.
During the war they saw airplanes land with lots of good materials, and
they want the same thing to happen now.
So they’ve arranged to make things like runways, to put fires along the
sides of the runways, to make a wooden hut for a man to sit in, with two wooden
pieces on his head like headphones and bars of bamboo sticking out like
antennas—he’s the controller—and they wait for the airplanes to land. They’re doing everything right. The form is perfect. It looks exactly the way it looked
before. But it doesn’t work. No airplanes land.
Front
Matthew Butterick's argument against adblockers
Back
The people who still see the ads are those who are slow on the uptake, and now the writing adapts to them
<a href="https://practicaltypography.com/economics-year-one.html">https://practicaltypography.com/economics-year-one.html</a>
Front
(vim) write selection to new file
Back
:<selection>w <filename>
Front
(vim) apply Unix filter on entire file
Front
(vim) on X11, register holding the contents of the text last highlighted with the mouse
Showing cards 601-620 of 622