Vim: The Basics
1/5
()
About this ebook
Table of Contents
This is my first book on VIM. I have just over three year of experience with VIM. I believe that I have enough experience to give a good introduction to the software, while being close enough to the beginner to be able to express the ideas in a way that makes sense.
I have not included exercises for you to do. I leave it to your discretion to decide when you want to practice.
Table of Contents
Chapter 2 Introduction
PART 1 BASICS
Chapter 3 Installing Vim
Chapter 4 Opening, Saving & Closing Files
Chapter 5 Basic Motions
Chapter 6 Basic Editing
Chapter 7 Help Files
PART 2 FURTHER SKILLS
Chapter 8 Advanced Motions
Chapter 9 Advanced Editing
Chapter 10 Additional Read / Write Options
Chapter 11 Windows Manipulation
PART 3 CUSTOMISING VIM
Chapter 12 Command Line Mode & vimrc
Chapter 13 Colorscheme
PART 4 USING VIM
Chapter 14 Plain Text
Chapter 15 LaTeX
Chapter 16 C#
Chapter 17 Conclusion
APPENDIX A: AN INTRODUCTION TO REGULAR EXPRESSIONS
APPENDIX B: THE VIM CHEAT SHEETS
APPENDIX C: THE ESSENTIALS
Andrew Stanton
A new author from Basingstoke. Interested in technology and computing, particularly opensource and Linux. I hope that my book will help people to discover the potential of these software options. Linux can be complicated to start with but once you start to understand it, you have access to a system with immense potential.
Related to Vim
Related ebooks
Going Text: Mastering the Command Line Rating: 4 out of 5 stars4/5Linux Command-Line Tips & Tricks Rating: 0 out of 5 stars0 ratingsBash Command Line Pro Tips Rating: 5 out of 5 stars5/5UNIX Shell Scripting Interview Questions, Answers, and Explanations: UNIX Shell Certification Review Rating: 5 out of 5 stars5/5Working with Linux – Quick Hacks for the Command Line Rating: 5 out of 5 stars5/5Arch Linux: Fast and Light! Rating: 3 out of 5 stars3/5Let's Use BASH on Windows 10! Rating: 0 out of 5 stars0 ratingsBeginning x64 Assembly Programming: From Novice to AVX Professional Rating: 0 out of 5 stars0 ratingsSimply Linux: Basics Rating: 5 out of 5 stars5/5Learn Rust Programming: Safe Code, Supports Low Level and Embedded Systems Programming with a Strong Ecosystem (English Edition) Rating: 0 out of 5 stars0 ratingsLinux Shell Scripting Cookbook, Second Edition Rating: 0 out of 5 stars0 ratingsLearning Linux Shell Scripting Rating: 4 out of 5 stars4/5Mastering Bash Rating: 5 out of 5 stars5/5Linux Shell Scripting Cookbook - Third Edition Rating: 4 out of 5 stars4/5Git Essentials Rating: 4 out of 5 stars4/5Mastering Linux Shell Scripting Rating: 4 out of 5 stars4/5Classic Computer Science Problems in Python Rating: 0 out of 5 stars0 ratingsLinux in Action Rating: 0 out of 5 stars0 ratingsTiny Python Projects: Learn coding and testing with puzzles and games Rating: 5 out of 5 stars5/5Learning Nagios 4 Rating: 5 out of 5 stars5/5Git: Mastering Version Control Rating: 0 out of 5 stars0 ratingsLinux Command Line and Shell Scripting Bible Rating: 3 out of 5 stars3/5Learning Shell Scripting with Zsh Rating: 0 out of 5 stars0 ratingsDocker A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsBeginning Rust: From Novice to Professional Rating: 0 out of 5 stars0 ratingsPractical Rust Projects: Building Game, Physical Computing, and Machine Learning Applications Rating: 3 out of 5 stars3/5Scala Functional Programming Patterns Rating: 0 out of 5 stars0 ratingsCommon LISP: The Language Rating: 4 out of 5 stars4/5
Computers For You
Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsAP Computer Science Principles Premium, 2024: 6 Practice Tests + Comprehensive Review + Online Practice Rating: 0 out of 5 stars0 ratingsCreating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Network+ Study Guide & Practice Exams Rating: 4 out of 5 stars4/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsPractical Lock Picking: A Physical Penetration Tester's Training Guide Rating: 5 out of 5 stars5/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Childhood Unplugged: Practical Advice to Get Kids Off Screens and Find Balance Rating: 0 out of 5 stars0 ratingsElon Musk Rating: 4 out of 5 stars4/5The Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5Master Builder Roblox: The Essential Guide Rating: 4 out of 5 stars4/5People Skills for Analytical Thinkers Rating: 5 out of 5 stars5/5
Reviews for Vim
1 rating0 reviews
Book preview
Vim - Andrew Stanton
Vim: The Basics
Published by Andrew Stanton at Smashwords
Copyright 2013 Andrew Stanton
Smashwords Edition License Notes
This eBook is licensed for your personal enjoyment only. This eBook may not be re-sold or given away to other people. If you would like to share this book with another person, please purchase an additional copy for each recipient. If you’re reading this book and did not purchase it, or it was not purchased for your use only, then please return to Smashwords.com and purchase your own copy. Thank you for respecting the hard work of this author.
Table of Contents
Chapter 2 Introduction
Part 1 Basics
Chapter 3 Installing Vim
Chapter 4 Opening, Saving & Closing Files
Chapter 5 Basic Motions
Chapter 6 Basic Editing
Chapter 7 Help Files
Part 2 Further Skills
Chapter 8 Advanced Motions
Chapter 9 Advanced Editing
Chapter 10 Additional Read / Write Options
Chapter 11 Windows Manipulation
Part 3 Customising Vim
Chapter 12 Command Line Mode & vimrc
Chapter 13 Colorscheme
Part 4 Using Vim
Chapter 14 Plain Text
Chapter 15 LaTeX
Chapter 16 C#
Chapter 17 Conclusion
Appendix A: An Introduction to Regular Expressions
Appendix B: The Vim Cheat Sheets
Appendix C: The Essentials
Chapter 1 Acknowledgements
I wish to thank all my β readers for their feedback, suggestions and encouragement. Without them this eBook would not be at the same standard that it is now.
My β readers are: Marie Shaw, Martin Robson, James Stanton and Luke.
Title Image sourced from vimcn.blogspot.com.
Chapter 2 Introduction
This is a book about the Vim text editor; it is aimed at those who are new to Vim. However, people who have already had some experience with Vim may benefit from some new tips or a different perspective on the skills you already have.
This book is divided into two main sections. The first section is a set of the most basic commands, a Vim survival kit if you will. While these commands will give you some measure of ability with Vim, I highly recommend that you read the advanced section as well.
The second section will provide you with extra knowledge to improve your skills and abilities with Vim.
There are also three appendices. The first is an introduction to Regular Expressions (an advanced search language); the second is a compilation of cheat-sheets which list most of the commands covered in the rest of the book. The final appendix is the essentials; this is for those who have to jump straight in. This walks you through the fundamentals of opening, editing, saving and closing a file.
The History of Vim
Vim, written by Bram Moolenaar, was released in 1991. It is based on Vi and has evolved from previous text editors, the earliest of which was ex (Bill Joy, 1976). Vim is an acronym for Vi IMproved
; however until December 1993 and the release of version 2.0, the acronym stood for the more deferential Vi IMitation
. The name was changed because Vim’s feature set had become larger than Vi.1
New features included: Multi-level undo; Support for multiple windows and buffers (V3.0, 1994); Syntax highlighting (V5.0, 1998) and Text Folding (V6.0, 2001).
Terms used here will be explained later in this book.
The latest stable release is version 7.3.353 released 26/10/2011; there is preview version (7.3.582 released June 2012) under development.
Why people should use Vim?
Vim is definitely my favourite text editor; it is just so useful and versatile.
I would personally recommend that anyone who is regularly involved with the creation and editing of any type of plain text filetype should try to learn Vim.
While some of Vim's functionality is solely applicable to programmers, there is much in Vim's repertoire that both fiction and non-fiction writers may find extremely helpful.
I have used Vim when working with:
•C#
•Python
•Pascal
•HTML
•CSS
•Plain Text
•CSV
•LaTeX
•Assembly Language
High Level Programming, Scripting, Mark up and Plain Text. Vim has something to