TranslateProject/sources/tech/20190624 Book Review- A Byte of Vim.md
DarkSun 600cd5a1c5 选题: 20190624 Book Review: A Byte of Vim
sources/tech/20190624 Book Review- A Byte of Vim.md
2019-06-25 00:53:09 +08:00

6.4 KiB
Raw Blame History

Book Review: A Byte of Vim

Vim is a tool that is both simple and very powerful. Most new users will be intimidated by it because it doesnt work like regular graphical text editors. The unusual keyboard shortcuts makes people wonder about how to save and exit Vim. But once you master Vim, there is nothing like it.

There are numerous Vim resources available online. We have covered some Vim tricks on Its FOSS as well. Apart from online resources, plenty of books have been dedicated to this editor as well. Today, we will look at one of such book that is designed to make Vim easy for most users to understand. The book we will be discussing is A Byte of Vim by Swaroop C H.

The author Swaroop C H has worked in computing for over a decade. He previously worked at Yahoo and Adobe. Out of college, he made money by selling Linux CDs. He started a number of businesses, including an iPod charger named ion. He is currently an engineering manager for the AI team at Helpshift.

A Byte of Vim

Like all good books, A Byte of Vim starts by talking about what Vim is: “a computer program used for writing any kind of text”. He does on to say, “What makes Vim special is that it is one of those few software which is both simple and powerful.”

Before diving into telling how to use Vim, Swaroop tells the reader how to install Vim for Windows, Mac, Linux, and BSD. Once the installation is complete, he runs you through how to launch Vim and how to create your first file.

Next, Swaroop discusses the different modes of Vim and how to navigate around your document using Vims keyboard shortcuts. This is followed by the basics of editing a document with Vim, including the Vim version of cut/copy/paste and undo/redo.

Once the editing basics are covered, Swaroop talks about using Vim to edit multiple parts of a single document. You can also multiple tabs and windows to edit multiple documents at the same time.

Suggested read  Bring Your Old Computer Back to Life With 4MLinux

The book also covers extending the functionality of Vim through scripting and installing plugins. There are two ways to using scripts in Vim, use Vims built-in scripting language or using a programming language like Python or Perl to access Vims internals. There are five types of Vim plugins that can be written or downloaded: vimrc, global plugin, filetype plugin, syntax highlighting plugin, and compiler plugin.

In a separate section, Swaroop C H covers the features of Vim that make it good for programming. These features include syntax highlighting, smart indentation, support for shell commands, omnicompletion, and the ability to be used as an IDE.

Getting the A Byte of Vim book and contributing to it

A Byte of Book is licensed under Creative Commons 4.0. You can read an online version of the book for free on the authors website. You can also download a PDF, Epub, or Mobi for free.

Get A Byte of Vim for FREE

If you prefer reading a hard copy, you have that option, as well.

Please note that the original version of A Byte of Vim was written in 2008 and converted to PDf. Unfortunately, Swaroop C H lost the original source files and he is working to convert the book to Markdown. If you would like to help, please visit the books GitHub page.

Preview Product Price
Mastering Vim Quickly: From WTF to OMG in no time Mastering Vim Quickly: From WTF to OMG in no time Mastering Vim Quickly: From WTF to OMG in no time $34.00 Buy on Amazon

Conclusion

When I first stared into the angry maw that is Vim, I did not have a clue what to do. I wish that I had known about A Byte of Vim then. This book is a good resource for anyone learning about Linux, especially if you are getting into the command line.

Have you read A Byte of Vim by Swaroop C H? If yes, how do you find it? If not, what is your favorite book on an open source topic? Let us know in the comments below.

Suggested read  Iridium Browser: A Browser for the Privacy Conscious

If you found this article interesting, please take a minute to share it on social media, Hacker News or Reddit.


via: https://itsfoss.com/book-review-a-byte-of-vim/

作者:John Paul 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出