Muutke küpsiste eelistusi

Modern Vim [Pehme köide]

  • Formaat: Paperback / softback, 168 pages, kõrgus x laius x paksus: 250x130x5 mm
  • Ilmumisaeg: 26-Jul-2018
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 168050262X
  • ISBN-13: 9781680502626
Teised raamatud teemal:
  • Formaat: Paperback / softback, 168 pages, kõrgus x laius x paksus: 250x130x5 mm
  • Ilmumisaeg: 26-Jul-2018
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 168050262X
  • ISBN-13: 9781680502626
Teised raamatud teemal:
Turn Vim into a full-blown development environment using Vim 8's new features and this sequel to the beloved bestseller Practical Vim. Integrate your editor with tools for building, testing, linting, indexing, and searching your codebase. Discover the future of Vim with Neovim: a fork of Vim that includes a built-in terminal emulator that will transform your workflow. Whether you choose to switch to Neovim or stick with Vim 8, you'll be a better developer.



A serious tool for programmers and web developers, no other text editor comes close to Vim for speed and efficiency. Make Vim the centerpiece of a Unix-based IDE as you discover new ways to work with Vim 8 and Neovim in more than 20 hands-on tips.



Execute tasks asynchronously, allowing you to continue in Vim while linting, grepping, building a project, or running a test suite. Install plugins to be loaded on startup - or on-demand when you need them - with Vim 8's new package support. Save and restore sessions, enabling you to quit Vim and restart again while preserving your window layout and undo history. Use Neovim as a drop-in replacement for Vim - it supports all of the features Vim 8 offers and more, including an integrated terminal that lets you quickly perform interactive commands. And if you enjoy using tmux and Vim together, you'll love Neovim's terminal emulator, which lets you run an interactive shell in a buffer. The terminal buffers fit naturally with Vim's split windows, and you can use Normal mode commands to scroll, search, copy, and paste. On top of all that: Neovim's terminal buffers are scriptable.



With Vim at the core of your development environment, you'll become a faster and more efficient developer.



What You Need:



You'll need a Unix-based environment and an up-to-date release of Vim (8.0 or newer). For the tips about running a terminal emulator, you'll need to install Neovim.
Acknowledgments vii
Introduction ix
1 Get Modern Vim
1(10)
Tip 1 Installing Vim 8
2(2)
Tip 2 Switching to Neovim
4(3)
Tip 3 Enabling Python Support in Neovim
7(4)
2 Installing Plugins
11(12)
Tip 4 Understanding Scripts, Plugins, and Packages
11(3)
Tip 5 Installing Plugins to Your Package
14(4)
Tip 6 Managing Plugins with minpac
18(5)
3 Opening Files
23(16)
Tip 7 Finding Files Using Fuzzy Path Matching
23(7)
Tip 8 Finding Files Semantically
30(5)
Tip 9 Jumping to an Alternate File
35(4)
4 Working with the Quickfix List
39(30)
Tip 10 Running a Build and Navigating Failures
39(7)
Tip 11 Switching Compilers
46(4)
Tip 12 Linting the Current File
50(6)
Tip 13 Searching Files with Grep-Alikes
56(7)
Tip 14 Running Tests and Browsing Failures
63(6)
5 Neovim's Built-in Terminal Emulator
69(26)
Tip 15 Grokking Terminal Mode
71(4)
Tip 16 Running Programs in a Terminal Buffer
75(4)
Tip 17 Managing Windows That Contain Terminal Buffers
79(3)
Tip 18 Using Normal Mode Commands in a Terminal Buffer
82(3)
Tip 19 Sending Commands to a Terminal Buffer
85(2)
Tip 20 Applying Customizations to Your Shell in a Terminal Buffer
87(1)
Tip 21 Avoiding Nested Neovim Instances
88(3)
Tip 22 Using an Existing nvim Instance as the Preferred Editor
91(4)
6 Sessions
95(10)
Tip 23 Saving and Restoring Sessions
96(3)
Tip 24 Making Undo Persist Between Sessions
99(2)
Tip 25 Restarting Terminal Processes When Resuming a Session
101(4)
7 Configuring Vim
105(22)
Tip 26 Using Autocommands to Respond to Events
105(7)
Tip 27 Respecting Project Conventions
112(4)
Tip 28 Setting Buffer-Local Configuration Per Project
116(11)
A1 What's Next for Modern Vim?
127(10)
Integrating with the Language Server Protocol
127(2)
What's Next for Vim 8
129(1)
What's Next for Neovim
130(7)
Bibliography 137(2)
Index 139
Drew Neil is a programmer, trainer, and entrepreneur. He runs Studio Nelstrom, which specializes in making educational screencasts. At vimcasts.org he publishes articles and video tutorials about Vim.