"A Byte of Vim" is a book which aims to help you to learn how to use the Vim editor (version 7), even if all you know is how to use the computer keyboard.
The first part of this book is meant for new users who want to understand what Vim is and learn how to use it.
The second part of this book is for people who already know how to use Vim and want to learn about features that make Vim so powerful, such as windows and tabs, personal information management, making it a programmer's editor, how to extend Vim with your own plugins, and more.
Please note that the conversion of the book to this Markdown sources is incomplete!
The original PDF is at http://files.swaroopch.com/vim/byte_of_vim_v051.pdf - unfortunately the original sources are lost.
I welcome your contributions to complete the porting of text from the original PDF to this new book's sources at https://github.com/swaroopch/byte-of-vim .
Thanks to A Byte of Vim, I have learnt how to use vim. Thank you very much for this excellent book! ;) -- Camille L (France)
Well done!!! I've been only using vim for like 2/3 weeks now, and thus I can say that it's just perfect for beginners like me!!! -- Jay
The book is very good and fun to read too. Thank you for sharing it. -- Yosi Izaq
Your books should sell like hot cakes for their way of presentation. -- Deepak
Awesome! Thank you for all of your hard work. It is especially nice that the beginning starts the reader off gradually. After using vim for a couple of years I've forgotten how weird it seems at first, so I probably wouldn't explain it that good to someone. I will be sure to share your book to spread the vim propaganda. ;-) -- Joseph Sullivan
What I am trying to say is if you have basic computer competency you should immediately get Vim on your machine and improve your life. The best place to learn about is to read Swaroop C H's awesome eBook A Byte of Vim, it will revolutionize how you think about text editors in the future. -- "wooden nickels"
Have been thumbing through 'byte of vim'. learning a ton even having used vim for years. -- Josh Nichols
Great Book !! Although I use vim everyday as an editor as well as an ide, the book makes u realise how much more it can do. -- Raseel Bhagat
Wonderful! This was one most-required-book. I was a vim user for the past years, but never have seen these much of facilities inside that! Thanks for the Book, Swaroop! -- Hiran Venugopalan
What a nice book. I'm a long-time vim user, but never managed to get my head around vim scripting (apart from fixing some bugs in others' scripts). This is the best introduction to Vim scripting (writing plugins, syntax files, ...) I have seen so far. Thanks for putting it online! -- Anonymous (18.104.22.168)
Thank you Swaroop! I've begun reading it and must say it's very well written. And I have no doubts this great community of us vim users here will improve it through fixes, additions or small corrections. -- Eduard Fabra
I'd recommend A Byte of Vim as a good intro for new and experienced users alike. -- James Kovacs, Germany
Este libro me ayudó muchísimo a sacarle provecho a vim (This book helped me a lot to take advantage of vim) -- Antonio Touriño, Panamá
I have used vi for quite a while and am pretty comfortable with it. But all I do in vi is first get into insert mode and edit the file as if I am using notepad. I started searching for tutorials on vi and found one that is so simple yet so amazing. I thank Swaroop CH, yes the same guy who wrote the book A Byte of Python, for another amazing book A Byte of Vim. It was so amazing and I started using vi like a novice vimmer. -- Nishanth
A Byte of Vim saved my day once again... -- @reku
The book was listed as the top tip for Dec 2008 on the Official Vim Tips wiki.
This book is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
You are free to Share i.e. to copy, distribute and transmit this book
You are free to Remix i.e. to make changes to this book (especially translations)
You are free to use it for commercial purposes
Please do not sell electronic or printed copies of the book unless you have clearly and prominently mentioned in the description that these copies are not from the original author of this book.
Attribution must be shown in the introductory description and front page of the document by linking back to and clearly indicating that the original text can be fetched from this location.
All the code/scripts provided in this book is licensed under the 3-clause BSD License unless otherwise noted.
You can read it online at
A printed hardcopy of the book can be purchased at for your offline reading pleasure, and to support the continued development and improvement of this book.
Visit for the following types of downloads:
Visit for the raw content (for suggesting corrections, changes, translating, etc.)
If you are interested in reading or contributing translations of this book to other human languages, please see "Translations" chapter.