AnkiLab
Sign in

Filter by tags:

filter by tags...

622 cards matching

Showing cards 601-620 of 622
Front
(vim) apply an ex command on the whole buffer
lang
Back
%

e.g. :%!<shell command>, :%s...
Front
(vim) apply a shell command (filter) on all lines matching a pattern
lang
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
lang
Back
Use g and s in a standard way:
:g/<pattern>/s/<search>/<replace>
Front
(vim) "delete" ex command
lang
Back
d
Front
(vim) "copy" ex command
lang
Back
t
Front
(vim) "move" ex command
lang
Back
m
Front
(vim) move all lines matching a pattern to the end of the buffer
lang
Back
:g/pattern/m$
Front
(vim) copy all lines matching a pattern to the end of the buffer
lang
Back
:g/pattern/t$
Front
(vim) apply a normal mode sequence of commands on all lines matching a pattern
lang
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
lang
Back
m<lowercase letter>
Front
(vim) set a global mark here
lang
Back
m<uppercase letter>
Front
(vim) difference between local and global mark
lang
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
lang
Back
'<letter>
Front
(LW) summary of "Well-Kept Gardens Die By Pacifism" by Eliezer Yudkowsky
lang
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?
lang
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
lang
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
lang
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
lang
Back
:<selection>w <filename>
Front
(vim) apply Unix filter on entire file
lang
Back
:%!command
or
:%! command
Front
(vim) on X11, register holding the contents of the text last highlighted with the mouse
lang
Back
*

e.g. "*p to paste it
Showing cards 601-620 of 622