Mastering_vim_quickly

目录:

1 Instead of Preface

1.1 What this book covers

1.2 What you need for this book

1.3 Who this book is for

1.4 Vim versions

1.5 Conventions

1.5.1 Key presses

1.5.2 Normal mode commands

1.5.3 Command line commands

1.5.4 Fonts

1.5.5 Other formatting

1.6 Piracy

1.7 Mastering Vim Quickly Newsletter

1.8 Why this name

1.9 Questions

2 Introduction

2.1 The art of l1earning

2.1.1 Pareto principle

2.1.2 Mini habits

2.1.3 1% improvement per day

2.2 No Experience Necessary

3 Mastering Vim - Basics

3.1 Installing Vim 8

3.2 Vim philosophy

3.2.1 Modal editing

3.2.2 Operators

3.3 Starting Vim

4 Your first Vim session

5 Vim Concepts

5.1 Modes

5.2 Commands

6 Working with files

6.1 Opening files

6.2 Closing files

6.3 Saving files

6.4 Navigation

6.4.1 Basic movement

6.4.2 Navigate through words

6.4.3 Scrolling pages

6.4.4 Jumping around the file

6.4.5 Navigating inside the window

6.4.6 Navigating in Insert mode

6.5 Basic search

6.5.1 Searching for the current word

6.5.2 Search history

6.6 File Manager (netrw) in Vim

6.6.1 Changing how files are opened

6.6.2 Set netrw split width

6.7 Editing files via SSH

7 Personalizing Vim

7.1 Vim configuration explained

7.1.1 Make Vim look beautiful

7.1.2 Usability improvements

7.1.3 Status line

7.1.4 Swap and backup files dilemma

7.1.5 Project specific .vimrc

7.1.6 Basic recommended configuration

8 Undo and Redo

8.1 Undo branches

8.2 Persistent Undo

9 Do you speak Vim?

9.1 Vim Language Elements

9.1.1 Verbs

9.1.2 Modifiers

9.1.3 Nouns

9.1.4 Learn to talk to Vim

9.2 The "dot" command

10 Substitution

10.1 Ranges

10.2 Search and replace

10.2.1 Replacement in the whole file

10.2.2 Replacement within a single line

10.2.3 Replacement within a range of lines

10.2.4 Replacement inside visual selection

10.2.5 Replace only the whole words

10.2.6 Replace either string1 or string2 with a new word

10.2.7 Interactive search and replace

10.3 Search through multiple files

10.4 Match that string

10.5 The power of the global command

11 Registers

11.1 Using Vim Registers Internally

11.1.1 The famous annoying problem finally solved

11.2 The System Clipboard Registers "+ and "*

12 Buffers

13 Windows, Tabs and Sessions

13.1 Windows and Tabs

13.2 Split Windows

13.2.1 Switching windows

13.2.2 Moving windows

13.2.3 Resizing windows

13.3 Sessions

14 Macros

14.1 Execute macro in multiple files

14.2 Editing a macro

14.3 Recursive macros

14.4 More macro examples

15 The power of Visual modes

15.1 Selecting characters

15.2 Selecting lines

15.3 Visual block selection

15.4 Extend a current visual selection

15.5 Run commands across selection

15.6 The dot command in Visual mode

15.7 Move visual selection

15.8 Visual mode possibilities

16 Mappings

17 Folding

17.1 Manual folding

17.2 Folding by indentation

17.3 Syntax folding

17.4 Persistent folds

18 Effective multiple file editing

18.1 The execute and normal commands

18.2 argdo vs bufdo

18.3 bufdo examples

18.4 argdo examples

18.5 windo command

19 Productivity tips

19.1 Relative numbers

19.2 Using the Leader Key

19.3 Automatic Completion

19.4 Using File Templates

19.5 Repeat the last Ex command

19.6 Paste text while in Insert mode

19.7 Delete in Insert mode

19.8 Repeatable operations on search matches

19.9 Copy lines without cursor movement

19.10 Move lines without cursor movement

19.11 Delete lines without cursor movement

19.12 Vim write through

19.13 Run the same command on multiple lines

19.14 Generating numbered lists

19.15 Increasing or decreasing numbers

19.16 Why Vim 8 is great

19.17 Faster delete/change to the end of the line

19.18 Repeating characters

19.19 Clear highlighted searches

19.20 Execute multiple commands at once

19.21 External program integration

19.22 Auto remove trailing whitespace

19.23 Open and edit archives

19.24 Open the last edited file

19.25 Navigation through cursor history

19.26 Invert selection

19.27 Quickly switching buffers

19.28 Fix indentation in entire file

20 Plugins

20.1 How to install plugin manager Vundle

20.2 How to install a new plugin

21 What now

22 References

23 About the author