Hacker Monthly #19 by Netizens Media
Author:Netizens Media [Media, Netizens]
Language: eng
Format: epub, mobi, pdf
Publisher: Netizens Media
Published: 2011-12-01T13:32:06+00:00
Vim Text Objects: The Definitive Guide
By JARED CARROLL
To edit efficiently in Vim, you have to edit beyond individual characters. Instead, edit by word, sentence, and paragraph. In Vim, these higher-level contexts are called text objects.
Vim provides text objects for both plaintext and common programming language constructs. You can also define new text objects using Vim script.
Learning these text objects can take your Vim editing to a whole new level of precision and speed.
Structure of an Editing Command
In Vim, editing commands have the following structure:
<number><command><text object or motion>
The number is used to perform the command over multiple text objects or motions, e.g., backward three words, forward two paragraphs. The number is optional and can appear either before or after the command.
The command is an operation, e.g., change, delete (cut), or yank (copy). The command is also optional, but without it, you only have a motion command, not an edit command
The text object or motion can either be a text construct, e.g., a word, a sentence, a paragraph, or a motion, e.g., forward a line, back one page, end of the line.
An editing command is a command plus a text object or motion, e.g., delete this word, change the next sentence, copy this paragraph.
Plaintext Text Objects
Vim provides text objects for the three building blocks of plaintext: words, sentences and paragraphs.
Words
• aw → a word (includes surrounding white space)
• iw → inner word (does not include surrounding white space)
Download
Hacker Monthly #19 by Netizens Media.mobi
Hacker Monthly #19 by Netizens Media.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Brazilian Economy since the Great Financial Crisis of 20072008 by Philip Arestis Carolina Troncoso Baltar & Daniela Magalhães Prates(361644)
International Integration of the Brazilian Economy by Elias C. Grivoyannis(111593)
The Art of Coaching by Elena Aguilar(53645)
Flexible Working by Dale Gemma;(23361)
How to Stop Living Paycheck to Paycheck by Avery Breyer(19835)
Thinking, Fast and Slow by Kahneman Daniel(12526)
The Acquirer's Multiple: How the Billionaire Contrarians of Deep Value Beat the Market by Tobias Carlisle(12429)
The Radium Girls by Kate Moore(12180)
The Art of Thinking Clearly by Rolf Dobelli(10719)
Hit Refresh by Satya Nadella(9259)
The Compound Effect by Darren Hardy(9150)
Tools of Titans by Timothy Ferriss(8593)
Atomic Habits: Tiny Changes, Remarkable Results by James Clear(8519)
Turbulence by E. J. Noyes(8209)
A Court of Wings and Ruin by Sarah J. Maas(8109)
Change Your Questions, Change Your Life by Marilee Adams(7931)
Nudge - Improving Decisions about Health, Wealth, and Happiness by Thaler Sunstein(7852)
How to Be a Bawse: A Guide to Conquering Life by Lilly Singh(7613)
Win Bigly by Scott Adams(7345)