Hacking Vim 7.2 and over 1.5 million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
Trade in Yours
For a £2.10 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Hacking Vim 7.2 on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Hacking Vim 7.2 [Paperback]

Kim Schulz
4.0 out of 5 stars  See all reviews (1 customer review)
RRP: £24.99
Price: £23.74 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £1.25 (5%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon. Gift-wrap available.
Want delivery by Saturday, 25 May? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £15.44  
Paperback £23.74  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details. Learn more.

Book Description

29 April 2010
Vim is one of the most powerful open-source editors used by programmers and system administrators around the world. While Vim itself is inherently a powerful editor, personalizing it to suit your needs can be a daunting task. However, it is possible to do so with the help of this book.

This book contains examples that cover everything from personalizing Vim according to the your work cycle to optimizations that will boost the your productivity. The main focus of this book is to make your life, as a Vim user, easier.

Each chapter deals with a different aspect, and provides recipes for easy-to-use hacks to customize and simplify your Vim experience. After an introduction covering the derivation of Vim and its relatives from the vi editor, the author explains basic changes that you can make to the appearance of the Vim editor. Further chapters cover improved navigation through files and buffers in Vim; speeding up your work with templates, auto-completion, folding, sessions, and registers; and formatting text and code, including using external formatting scripts. The final comprehensive chapter covers everything about using Vim scripts and scripting to extend functionality.

This book is written for Vim 7.2, the latest stable version. This latest version of Vim includes many new features like spell-checking, code completion, document tabs, current line and column highlighting, undo branches, and much more.

Getting the most out of the Vim editor


What you will learn from this book :
Gain a deep understanding of Vim to master the editor
Personalize Vim to suit your needs
Navigate through files faster while editing multiple files
Boost your productivity by using templates, auto-completion, folding, sessions, and registers
Improve the formatting of your text and code by mastering simple tricks
Extend Vim with scripts
Retain your Vim configuration across computers by storing an online copy

Approach
This book is a tutorial packed with ready-to-use hacks that give solutions for common problems faced by Vim users in their everyday life. Every chapter covers a set of recipes, each of which follows a systematic approach with a self-contained description of the task it covers, how to use it, and what you gain by using it. The minimum version of Vim required for each hack is clearly indicated.


Who this book is written for
If you are a Vim user who wants to get more out of this legendary text editor, this book is for you. It focuses on making life easier for intermediate to experienced Vim users.

Frequently Bought Together

Hacking Vim 7.2 + bash Pocket Reference (Pocket Reference (O'Reilly))
Price For Both: £29.36

Buy the selected items together


Product details

  • Paperback: 228 pages
  • Publisher: Packt Publishing (29 April 2010)
  • Language: English
  • ISBN-10: 1849510504
  • ISBN-13: 978-1849510509
  • Product Dimensions: 19.1 x 1.3 x 23.5 cm
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 599,048 in Books (See Top 100 in Books)

Product Description

About the Author

Kim Schulz


Kim Schulz has an M.Sc. in Software Engineering from Aalborg University in Denmark. He has been an active developer in the Linux and Open Source communities since 1997 and has worked with everything from translation and bug fixing to producing full-blown software systems. This entire time, Vim has been Kim's editor of choice and it has been the first thing he installs whenever he sits by a new computer. Today Kim works as a full-time software engineer at CSR Plc. developing software for the next generation wireless technologies. A lot of Kim's spare time has been spent on developing the open-source CMS Fundanemt. This has lead to him now owning the web-hosting company Devteam Denmark that specializes in hosting and development of Fundanemt-based websites.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

5 star
0
3 star
0
2 star
0
1 star
0
4.0 out of 5 stars
4.0 out of 5 stars
Most Helpful Customer Reviews
2 of 2 people found the following review helpful
4.0 out of 5 stars Nice read 3 Jun 2010
Format:Paperback
Disclaimer: This is based on a review copy provided by Packt Publishing.

If you want an introduction into what is possible with Vim beyond what vimtutor has to offer, this is something for you. This book offers some great tips on how to customise your experience and also introduces you to its scripting engine in order to publish your own extensions.

It is kind of a combination of recipe-like tips and tutorials which works rather well, although more depth with some of the chapters would have been nice, considering that the language extensions for Perl, Ruby and Python got whole chapters, each. It's also a bit weird that the author completely ignored OSX as a platform and so all the GUI examples are focused exclusively on what works with GVim, leaving MacVim out of the equation.

In general that didn't really annoy me all that much and I learnt a ton from reading this book. What did, though, was that the examples in the first couple of chapters require knowledge about the scripting engine that is explained a lot later. Some more explanation of the examples and how they work would have made this one a clear 5-star for me. There are also quite a lot of references to plugins that are already out there, like snipMate which received its own little tutorial :D

If you're interested in working with Vim, I'd definitely suggest that you take at least a look at the sample chapter.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 3.5 out of 5 stars  4 reviews
13 of 14 people found the following review helpful
4.0 out of 5 stars Some great chapters, some too basic 23 Jun 2010
By T. R. N. Jansson - Published on Amazon.com
Format:Paperback
The intended audience
In the preface of the book it is stated that the intended audience of the book is intermediate to experienced Vim users and considering the subtitle "Ready-to-use hacks with solutions for common situations encountered by users of the Vim editor" I was lead to believe is a book for those that had been around block and need hands-on examples of production boosters. In my mind I expected it to be a kind of cookbook with small recipes for distinct problems. This is most likely because I have just read the excellent "PHP phrasebook" by Christian Wenz and "Python Phrasebook" by Brad Dayley which both does a great job in this genre of ready-to-use books oriented to more experienced users. The reason I find these books so great are that they acknowledge that the reader is intermediate to experienced and heads straight for the recipes leaving the basics behind. After having read "Having Vim 7.2' I am not as convinced that "Hacking Vim 7.2' succeeded as well in this genre as it dwells too much at the basics in my opinion, but I will return to this later.

A short review of the chapters
The first chapter starts of with a historical insight to Vim and while this can be interesting it seems a bit out of focus for this "ready-to-use hacks with solutions" book. I did not really feel very exited after having read this chapter, but luckily this was followed by the excellent second chapter "Personalizing Vim". This second chapter dives head first into actual Vim hacking with a bunch of well described small hacks to the standard setup including color highlighting, gvim menu hacking and font changing. This chapter definitely fulfilled my expectation to what this a book like this should be, despite the fact that it dealt a little more with the graphical gvim than I am interested in.

The third chapter is called "Better navigation" and while it contained some useful bits, it also went unnecessary details with very basic elements already covered by vimtutor, which I assume that all "intermediate to experienced" users would be familiar with. This is quite vivid in example 1: "Finding the next occurrences of a word" where a full page is used on describing the standard search function. The chapter does however cover most subjects to be expected in a navigation chapter, so for the users who are completely new to Vim navigation it is a good introduction, but it reminds more of a introductory textbook than a "ready-to-use- hacks" book.

Chapter four: "Production boosters" was the chapter I had been looking the most forward to reading after having seen the table of contents. The chapter contains a number of hacks that I found quite useful, such as a excellent walk through example of the usage of omnicompletion: The author goes into details with a real life scenario and uses a function written in vim to accomplish the text editing and I learn alot from reading it. Another example is the coverage of the netrw feature in Vim which enables editing files directly over ssh or ftp. Personally this is how I prefer a book like this to be - inspiring me to try out new hacks own my own.

The fifth chapter goes through formatting of both code and text in various ways and although it had some useful tips there wasn't really something I was very exited about. The sixth chapter about basic vim scripting was really surprisingly basic. The chapter is a very basic introduction to scripting and anyone with a background in any programming language would for instance not find the sections on "for loops" or "while loops" terrible interesting. At this point in the book I again got a bit confused about the intended audience: On one hand this is a great slow introduction to scripting and general programming, but when considering the subtitle of the book I would have expected a more direct approach with examples of useful scripts and tips to hack these.

The final and seventh chapter extends the scripting basics with what I believe was a more appropriate level for the claimed level of the reader. Here good practices and debugging of scripts is described, as wells as short descriptions on how to script in external languages such python, perl and ruby.

In line with the style of the first chapter appendix A does not really cover any ready-to-use hacks, but is instead more a list of what I would call fun-facts. I did not know that you could play Nibbles, Sokoban or Tetris inside Vim, but on the other hand I didn't really care either. The most interesting section in this appendix covered using Vim as an IDE (Integrated Development Environment), but most of the tips were quite shallow as they deferred actual usage instructions to online sources and scripts. The final appendix called "Vim configuration alternatives" is quite good, but should perhaps have been included in the second chapter as it is quite short, but very relevant.

The layout
My overall impression is that the layout leaves some room for improvement. Often examples start in the middle of the text and there is no typographical indicators showing that a example is starting. This makes the book hard to use as a reference, since I often look for the examples when I need implement a hack. Furthermore, there is a number of small tips boxes spread out through the book, but they do not have titles and this makes it more tedious to find that special box with the good tip without reading through them all. Finally the book is available both in a ebook and a printed version, but the printed book is in black and white, which makes the color screenshots on page 142 and the syntax highlighted script on page 193 a bit hard to comprehend.

Final verdict
As the reader might have figured by now I am not completely thrilled about this book. I think it at times misses the intended audience and prioritize some less important element of Vim on behalf of more ready-to-use hacks. I would have loved if the pages spent on games within Vim was instead used on covering Vim as an IDE in detail or perhaps skipping the very basic scripting elements in chapter six in favor of a section on the LaTeX-suite for Vim. In summary: I could have imagined this book be more concise, but I do appreciate the good chapters as "4. Production boosters" or "2. Personalizing Vim" - both have undoubtedly made me a better Vim user.
3 of 3 people found the following review helpful
4.0 out of 5 stars Definitely worth the money 15 Jun 2010
By Jeffrey Ober - Published on Amazon.com
Format:Paperback
Vim has the potential to dramatically increase a programmer's productivity if you have the time and wherewithal to learn it. And it is a challenge to learn because it is unlike any other text editor (leaving aside other vi clones). It takes work not only to learn the editor's features and commands, but also to train yourself to use them effectively. Even experienced vim users will discover new, exciting features from time to time. And that is what makes Hacking Vim a real treat. It takes you on a brief tour of some of the coolest features of vim without getting bogged down in any one of them.

Hacking Vim bills itself as a recipe book. While it provides quite a few good ones, it seems to be organized more like a tutorial, using the examples to walk through some of the cooler features of vim. That said, the recipes it provides are very useful and a good number have made it into my ~/.vimrc.

I found some examples to be overly contrived. The author could have done a better job relating samples to real-world situations. I also wish it had gone into more depth when explaining some examples early on. If you don't skip ahead and read the section on vim scripting (or know it already), there are a few traps in the examples.

For all that, though, my now heavily dog-eared and ruffled copy was well worth the money. Like other books from the same publisher, Hacking Vim stays on subject, maintaining its focus and pragmatism. Definitely a good source of worthwhile tips.
2 of 3 people found the following review helpful
4.0 out of 5 stars A great collection of solutions and improvements for Vim use 20 Jun 2010
By Samuel Huckins - Published on Amazon.com
Format:Paperback
This book is filled with a variety of useful explanations and helpful tips for Vim users wanting to improve their efficiency and learn more about their editor. While I've enjoyed finding new and better ways to use Vim for some time, I still learned quite a lot from this book.

If you use Vim only to edit text files when you happen to be logged into a CLI: mosey on along, this isn't the book for you. If you currently use Vim regularly and want to improve your knowledge and effectiveness with it: your time reading this book will be well-spent. If you've somehow never heard of Vim but are enraptured by the idea of a text editor that can be an effective IDE in addition to allowing you to play Tetris and Rubik's Cube: you might like this book too.

All in all this was a very useful treasure trove of tips. Some I've already added to my repertoire, and more I'm trying to understand better. In fact, I learned so much from it that I decided I will likely need to drop most of my current Vim config and remake it cleanly. I know I'm not alone in collecting bits and pieces of configuration for this wonderful editor, in a fashion occasionally reminiscent of a deranged hermit crab. Now that I have a more solid understanding I can rebuild it quickly and effectively.
-----
For my full review, please visit my blog: [...]
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!


Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges