From 8bc091ce568e4c390cd6a0323e8209af441ceeff Mon Sep 17 00:00:00 2001 From: Igor Irianto Date: Thu, 14 Jan 2021 17:20:42 -0600 Subject: [PATCH] Change the heading to follow markdown style --- ch01_starting_vim.md | 6 +----- ch02_buffers_windows_tabs.md | 6 +----- ch03_opening_and_searching_files.md | 6 +----- ch04_vim_grammar.md | 6 +----- ch05_moving_in_file.md | 6 +----- ch06_insert_mode.md | 6 +----- ch07_the_dot_command.md | 6 +----- ch08_registers.md | 6 +----- ch09_macros.md | 6 +----- ch10_undo.md | 6 +----- ch11_visual_mode.md | 6 +----- ch12_search_and_substitute.md | 6 +----- ch13_the_global_command.md | 6 +----- ch14_external_commands.md | 6 +----- ch15_command-line_mode.md | 6 +----- ch16_tags.md | 6 +----- ch17_fold.md | 6 +----- ch18_git.md | 6 +----- ch19_compile.md | 6 +----- ch20_views_sessions_viminfo.md | 6 +----- ch21_vimrc.md | 6 +----- ch22_vim_packages.md | 6 +----- ch23_vim_runtime.md | 6 +----- ch24_vimscript_basic_data_types.md | 6 +----- ch25_vimscript_conditionals_and_loops.md | 6 +----- ch26_vimscript_variables_scopes.md | 6 +----- ch27_vimscript_functions.md | 6 +----- 27 files changed, 27 insertions(+), 135 deletions(-) diff --git a/ch01_starting_vim.md b/ch01_starting_vim.md index eb60f67..4a12abe 100644 --- a/ch01_starting_vim.md +++ b/ch01_starting_vim.md @@ -1,8 +1,4 @@ ---- -title: "Starting Vim" -metaTitle: "Starting Vim" -metaDescription: "Learn different ways to start Vim from the terminal." ---- +# Ch01. Starting Vim In this chapter, you will learn different ways to start Vim from the terminal. I was using Vim 8.2 when writing this guide. If you use Neovim or an older version of Vim, you should be (mostly) fine, but be aware that some commands might not be available. diff --git a/ch02_buffers_windows_tabs.md b/ch02_buffers_windows_tabs.md index d2ebac2..d742221 100644 --- a/ch02_buffers_windows_tabs.md +++ b/ch02_buffers_windows_tabs.md @@ -1,8 +1,4 @@ ---- -title: "Buffers, Windows, and Tabs" -metaTitle: "Buffers, Windows, and Tabs" -metaDescription: "What do buffers, windows, and tabs represent in Vim?." ---- +# Ch02. Buffers, Windows, and Tabs If you have used a modern text editor, you are probably familiar with windows and tabs. Vim has three abstractions instead of two: buffers, windows, and tabs. In this chapter, I will explain how buffers, windows, and tabs work in Vim. diff --git a/ch03_opening_and_searching_files.md b/ch03_opening_and_searching_files.md index b62ecb9..ec96dd0 100644 --- a/ch03_opening_and_searching_files.md +++ b/ch03_opening_and_searching_files.md @@ -1,8 +1,4 @@ ---- -title: "Opening And Searching Files" -metaTitle: "Opening And Searching Files" -metaDescription: "How to open and search files in Vim?" ---- +# Ch03. Opening And Searching Files The goal of this chapter is to introduce you to opening and searching files in Vim. Being able to search quickly is a great way to jump-start your Vim productivity. One reason it took me a long time to get onboard with Vim is because I didn't know how to find things quickly like many popular text editors. diff --git a/ch04_vim_grammar.md b/ch04_vim_grammar.md index 63a93e5..6cda885 100644 --- a/ch04_vim_grammar.md +++ b/ch04_vim_grammar.md @@ -1,8 +1,4 @@ ---- -title: "Vim Grammar" -metaTitle: "Vim Grammar" -metaDescription: "Learn how to speak to Vim." ---- +# Ch04. Vim Grammar It is easy to get intimidated by the complexity of many Vim commands. If you see a Vim user doing `gUfV` or `1GdG`, you may not immediately know what these commands do. In this chapter, I will break down the general structure of Vim commands into a simple grammar rule. diff --git a/ch05_moving_in_file.md b/ch05_moving_in_file.md index 219b5bb..33f9aca 100644 --- a/ch05_moving_in_file.md +++ b/ch05_moving_in_file.md @@ -1,8 +1,4 @@ ---- -title: "Moving In A File" -metaTitle: "Moving In A File" -metaDescription: "How to efficiently move around in a file." ---- +# Ch05. Moving In A File In the beginning, moving with a keyboard will feel awkward and incredibly slow, but don't give up! Once you get used to it, you can go anywhere in a file faster than a mouse. diff --git a/ch06_insert_mode.md b/ch06_insert_mode.md index f20345e..0ac2670 100644 --- a/ch06_insert_mode.md +++ b/ch06_insert_mode.md @@ -1,8 +1,4 @@ ---- -title: "Insert Mode" -metaTitle: "Insert Mode" -metaDescription: "How to work with insert mode." ---- +# Ch06. Insert Mode Insert mode is the default mode of many text editors. In this mode, what you type is what you get. diff --git a/ch07_the_dot_command.md b/ch07_the_dot_command.md index 342726d..0cc6b3b 100644 --- a/ch07_the_dot_command.md +++ b/ch07_the_dot_command.md @@ -1,8 +1,4 @@ ---- -title: "The Dot Command" -metaTitle: "The Dot Command" -metaDescription: "Be lazy and avoid repetition with the dot command." ---- +# Ch07. The Dot Command When editing a text, as much as you can, avoid redoing what you just did. In this chapter, you will learn how to use the dot command to easily replay the previous change. It is the simplest and most versatile command to reduce repetitions. diff --git a/ch08_registers.md b/ch08_registers.md index c4faae0..dec89cb 100644 --- a/ch08_registers.md +++ b/ch08_registers.md @@ -1,8 +1,4 @@ ---- -title: "Registers" -metaTitle: "Registers" -metaDescription: "Learn how to store data inside Vim registers." ---- +# Ch08. Registers Learning Vim registers is like learning algebra for the first time. You don't think you need them until you learn them. diff --git a/ch09_macros.md b/ch09_macros.md index 13d0d79..ff4aaa3 100644 --- a/ch09_macros.md +++ b/ch09_macros.md @@ -1,8 +1,4 @@ ---- -title: "Macros" -metaTitle: "Macros" -metaDescription: "How do you automate action with macros?" ---- +# Ch09. Macros When editing files, you may find yourself repeating the same actions. Wouldn't it be nice if you can do those actions once and replay them whenever you need it? With Vim macros, you can record actions and store them inside Vim registers. diff --git a/ch10_undo.md b/ch10_undo.md index 24145ec..1ab9587 100644 --- a/ch10_undo.md +++ b/ch10_undo.md @@ -1,8 +1,4 @@ ---- -title: "Undo" -metaTitle: "Undo" -metaDescription: "Vim undo deep dive." ---- +# Ch10. Undo Undo is an essential feature in any modern software. Vim's undo system is not only capable of undoing and redoing mistakes, but allows you to manipulate and retrieve text across time. In this chapter, you will learn how to undo and redo your text, navigate an undo branch, persist undo, and travel through time. diff --git a/ch11_visual_mode.md b/ch11_visual_mode.md index 119551e..4850b97 100644 --- a/ch11_visual_mode.md +++ b/ch11_visual_mode.md @@ -1,8 +1,4 @@ ---- -title: "Visual Mode" -metaTitle: "Visual Mode" -metaDescription: "Mastering the visual mode." ---- +# Ch11. Visual Mode With visual editors (like LibreOffice Writer, Microsoft Word) you probably know that you can highlight a block of text and apply changes to it. Vim can too, with visual mode. Vim has three different visual modes to use. In this chapter, you will learn how to use each visual mode to manipulate blocks of texts efficiently. diff --git a/ch12_search_and_substitute.md b/ch12_search_and_substitute.md index 38aa52d..bbf4f16 100644 --- a/ch12_search_and_substitute.md +++ b/ch12_search_and_substitute.md @@ -1,8 +1,4 @@ ---- -title: "Search and Substitute" -metaTitle: "Search and Substitute" -metaDescription: "Learn how to search and substitute all things." ---- +# Ch12. Search And Substitute This chapter covers two separate but related concepts: search and substitute. Many times, the texts that you are searching for are not straightforward and you must search for a common pattern. By learning how to use meaningful patterns in search and substitute instead of literal strings, you will be able to target any text quickly. diff --git a/ch13_the_global_command.md b/ch13_the_global_command.md index 17bb99a..7ff47ed 100644 --- a/ch13_the_global_command.md +++ b/ch13_the_global_command.md @@ -1,8 +1,4 @@ ---- -title: "The Global Command" -metaTitle: "The Global Command" -metaDescription: "How to perform multiple commands with the global command?" ---- +# Ch13. The Global Command So far you have learned how to repeat the last change with the dot command (`.`), to replay actions with macros (`q`), and to store texts in the registers (`"`). diff --git a/ch14_external_commands.md b/ch14_external_commands.md index 69de9ad..047c994 100644 --- a/ch14_external_commands.md +++ b/ch14_external_commands.md @@ -1,8 +1,4 @@ ---- -title: "External Commands" -metaTitle: "External Commands" -metaDescription: "Learn how to use external commands to extend Vim's functionality." ---- +# Ch14. External Commands Inside the Unix system, you will find many small, hyper-specialized commands where each does one thing well. You can chain these commands to work together to solve a complex problem. Wouldn't it be great if you can use these commands from inside Vim? diff --git a/ch15_command-line_mode.md b/ch15_command-line_mode.md index 7c1c94c..cfe558d 100644 --- a/ch15_command-line_mode.md +++ b/ch15_command-line_mode.md @@ -1,8 +1,4 @@ ---- -title: "Command-Line Mode" -metaTitle: "Command-Line Mode" -metaDescription: "What is the command-line mode in Vim?" ---- +# Ch15. Command-line Mode In the last three chapters, you learned how to use the search commands (`/`, `?`), substitute command (`:s`), global command (`:g`), and external command (`!`). These are examples of command-line mode commands. diff --git a/ch16_tags.md b/ch16_tags.md index a45c80a..b309e68 100644 --- a/ch16_tags.md +++ b/ch16_tags.md @@ -1,8 +1,4 @@ ---- -title: "Tags" -metaTitle: "Tags" -metaDescription: "How to use tags to jump to any definition?" ---- +# Ch16. Tags One useful feature in text editing is being able to go to any definition quickly. In this chapter, you will learn how to use Vim tags to do that. diff --git a/ch17_fold.md b/ch17_fold.md index 6515d19..da76004 100644 --- a/ch17_fold.md +++ b/ch17_fold.md @@ -1,8 +1,4 @@ ---- -title: "Fold" -metaTitle: "Fold" -metaDescription: "Learn Vim fold to organize your file." ---- +# Ch17. Fold When you read a file, often there are many irrelevant text that hinders you from understanding what that file does. To hide this unnecessary information, you can use Vim fold. diff --git a/ch18_git.md b/ch18_git.md index bb8e6ba..775127b 100644 --- a/ch18_git.md +++ b/ch18_git.md @@ -1,8 +1,4 @@ ---- -title: "Git" -metaTitle: "Git" -metaDescription: "How to integrate Vim and git." ---- +# Ch18. Git Vim and git are two great tools for two different things. Git is a version control tool. Vim is a text editor. In this chapter, you will learn different ways to integrate Vim and git together. diff --git a/ch19_compile.md b/ch19_compile.md index c3d6951..e7e110a 100644 --- a/ch19_compile.md +++ b/ch19_compile.md @@ -1,8 +1,4 @@ ---- -title: "Compile" -metaTitle: "Compile" -metaDescription: "Learn about Vim compile feature." ---- +# Ch19. Compile Compiling is an important subject for many languages. In this chapter, you will learn how to compile from Vim. In addition, you will look at ways to take advantage of Vim's `:make` command. diff --git a/ch20_views_sessions_viminfo.md b/ch20_views_sessions_viminfo.md index 68b230d..89db01d 100644 --- a/ch20_views_sessions_viminfo.md +++ b/ch20_views_sessions_viminfo.md @@ -1,8 +1,4 @@ ---- -title: "Views, Sessions, and Viminfo" -metaTitle: "Views, Sessions, and Viminfo" -metaDescription: "Views, Sessions, and Viminfo." ---- +# Ch20. Views, Sessions, And Viminfo After you worked on a project for a while, you may find that the project to gradually take shape with its own settings, folds, buffers, layouts, etc. It's like decorating your apartment to make it feel like home. diff --git a/ch21_vimrc.md b/ch21_vimrc.md index d83443c..ac5fcc0 100644 --- a/ch21_vimrc.md +++ b/ch21_vimrc.md @@ -1,8 +1,4 @@ ---- -title: "Vimrc" -metaTitle: "Vimrc" -metaDescription: "Learn about vimrc structure." ---- +# Ch21. Vimrc In the previous chapters, you learned how to use Vim. In this chapter, you will learn how to orgnize and configure vimrc. diff --git a/ch22_vim_packages.md b/ch22_vim_packages.md index 2ec7502..ef0d957 100644 --- a/ch22_vim_packages.md +++ b/ch22_vim_packages.md @@ -1,8 +1,4 @@ ---- -title: "Vim Packages" -metaTitle: "Vim Packages" -metaDescription: "How to install packages natively?" ---- +# Ch22. Vim Packages The previous chapter talked about using external plugin managers to install plugins. However, starting at version 8, Vim comes with its own built-in plugin manager called *packages*. In this chapter, you will learn how to use Vim packages to install plugins. diff --git a/ch23_vim_runtime.md b/ch23_vim_runtime.md index a433a35..a3f56d0 100644 --- a/ch23_vim_runtime.md +++ b/ch23_vim_runtime.md @@ -1,8 +1,4 @@ ---- -title: "Vim Runtime" -metaTitle: "Vim Runtime" -metaDescription: "Learn about how Vim runtime paths work." ---- +# Ch23. Vim Runtime In the previous chapters, you learned that Vim automatically looks for special paths like `pack/` (Ch 22) and `compiler/` (Ch 19) inside the `~/.vim/` directory. These are examples of Vim runtime paths. diff --git a/ch24_vimscript_basic_data_types.md b/ch24_vimscript_basic_data_types.md index 306dd08..e57ad31 100644 --- a/ch24_vimscript_basic_data_types.md +++ b/ch24_vimscript_basic_data_types.md @@ -1,8 +1,4 @@ ---- -title: "Vimscript Basic Data Types" -metaTitle: "Vimscript Basic Data Types" -metaDescription: "Learn the common data types of Vimscript." ---- +# Ch24. Vimscript Basic Data Types In the next few chapters, you will learn about Vimscript, Vim's built-in programming language. diff --git a/ch25_vimscript_conditionals_and_loops.md b/ch25_vimscript_conditionals_and_loops.md index f7fa98f..bd9949e 100644 --- a/ch25_vimscript_conditionals_and_loops.md +++ b/ch25_vimscript_conditionals_and_loops.md @@ -1,8 +1,4 @@ ---- -title: "Conditionals and Loops" -metaTitle: "Conditionals and Loops" -metaDescription: "How to write basic expressions with conditionals and loops." ---- +# Ch25. Vimscript Conditionals And Loops In this chapter, you will learn about conditionals and loops using the data types you learned in the previous chapter. diff --git a/ch26_vimscript_variables_scopes.md b/ch26_vimscript_variables_scopes.md index 2e80108..2193b02 100644 --- a/ch26_vimscript_variables_scopes.md +++ b/ch26_vimscript_variables_scopes.md @@ -1,8 +1,4 @@ ---- -title: "Variables and Scopes" -metaTitle: "Variables and Scopes" -metaDescription: "What are the different variable scopes in Vim?" ---- +# Ch26. Vimscript Variables And Scopes Before diving into Vimscript functions, let's learn about the different sources and scopes of Vim variables. diff --git a/ch27_vimscript_functions.md b/ch27_vimscript_functions.md index 18f915c..6d6009b 100644 --- a/ch27_vimscript_functions.md +++ b/ch27_vimscript_functions.md @@ -1,8 +1,4 @@ ---- -title: "Vimscript Functions" -metaTitle: "Vimscript Functions" -metaDescription: "Vimscript Functions" ---- +# Ch27. Vimscript Functions Functions are the pinnacles of programming. Can you imagine a programming language without functions? It is the ultimate means of abstraction. In this chapter, you will learn how to create your own Vimscript functions.