Mastering Vim Efficient and effortless editing with Vim and Vimscript

by Ruslan Osipov

Programming

Book Details

Book Title

Mastering Vim Efficient and effortless editing with Vim and Vimscript

Author

Ruslan Osipov

Publisher

Packt Publishing City: Birmingham, UK

Publication Date

2024

ISBN

9781835081877

Number of Pages

300

Language

English

Format

PDF

File Size

5.4MB

Subject

Vim; Neovim; Developer Tools

Table of Contents

  • Cover
  • Title page
  • Copyright and credits
  • Dedication
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started
  • Technical requirements
  • A brief history lesson
  • Let’s start a conversation (about modal interfaces)
  • Installation
  • Vanilla Vim versus gVim
  • Configuring Vim with your .vimrc
  • Common operations (or, how to exit Vim)
  • Moving around – talk to your editor
  • Making simple edits in insert mode
  • Persistent undo and repeat
  • Read the Vim manual using :help
  • Summary
  • Chapter 2: Advanced Editing and Navigation
  • Technical requirements
  • Installing plugins
  • Organizing the workspace
  • Navigating file trees
  • Navigating text
  • Copying and pasting with registers
  • Summary
  • Chapter 3: Follow the Leader Plugin Management
  • Technical requirements
  • Managing plugins
  • Deeper dive into modes
  • Remapping commands
  • The leader key
  • Configuring plugins
  • Summary
  • Chapter 4: Understanding Structured Text
  • Technical requirements
  • Code autocomplete
  • Navigating the code base with tags
  • Visualizing the undo tree
  • Summary
  • Chapter 5: Build, Test, and Execute
  • Technical requirements
  • Working with version control
  • Resolving conflicts with vimdiff
  • tmux, screen, and Vim terminal mode
  • Building and testing
  • Summary
  • Chapter 6: Refactoring Code with Regex and Macros
  • Technical requirements
  • Search or replace with regular expressions
  • Recording and playing macros
  • Using plugins to do the job
  • Summary
  • Chapter 7: Making Vim Your Own
  • Technical requirements
  • Playing with the Vim UI
  • Keeping track of configuration files
  • Healthy Vim customization habits
  • Summary
  • Chapter 8: Transcending the Mundane with Vimscript
  • Technical requirements
  • Why Vimscript?
  • How to execute Vimscript
  • Major changes in Vimscript 9
  • Learning the syntax
  • A word about style guides
  • Let’s build a plugin
  • Further reading
  • Summary
  • Chapter 9: Where to Go from Here
  • Seven habits of effective text editing
  • Modal interfaces everywhere
  • Neovim
  • Recommended reading and communities
  • A word about Uganda
  • Summary
  • Index