Edit wordings

pull/59/head
Igor Irianto 3 years ago
parent f39a1c4e22
commit 59a9ff3141

@ -2,7 +2,7 @@
## What is this about?
*Learn Vim (the Smart Way)* is a book to learn the good parts of Vim.
*Learn Vim (the Smart Way)* is a guide to learn the good parts of Vim.
Follow [@learnvim](https://twitter.com/learnvim) for updates, Vim tips, etc.

@ -4,7 +4,7 @@ metaTitle: "Starting Vim"
metaDescription: "Learn different ways to start Vim from the terminal."
---
In this chapter, you will learn different ways to start Vim from the terminal. I was using Vim 8.2 when writing this book. 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.
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.
## Installing
@ -62,7 +62,7 @@ There are other ways to exit Vim, but these are the ones you will use daily.
## Help
Throughout the book, I will refer you to various Vim help pages. You can access the help page by typing the following Command-line command:
Throughout this guide, I will refer you to various Vim help pages. You can access the help page by typing the following Command-line command:
```
:help
@ -141,7 +141,7 @@ vim -c %s/foo/bar/g hello.txt
vim -c %s/foo/bar/g -c %s/bar/baz/g -c %s/baz/donut/g hello.txt
```
Throughout this book you will learn various Command-line commands. These commands can all be executed on start.
Throughout this guide you will learn various Command-line commands. These commands can all be executed on start.
## Opening Multiple Windows
@ -181,7 +181,7 @@ To return to the suspended Vim, run `fg` from the terminal.
## Starting Vim The Smart Way
You can pass the `vim` command with different options and flags, just like any terminal commands. One of the options is the command-line command (`+{cmd}` or `c cmd`). As you learn more command-line commands throughout this book, see if you can apply it on start. Also being a terminal command, you can combine `vim` with many other terminal commands. For example, you can redirect the output of the `ls` command to be edited in Vim with `ls -l | vim -`.
You can pass the `vim` command with different options and flags, just like any terminal commands. One of the options is the command-line command (`+{cmd}` or `c cmd`). As you learn more command-line commands throughout this guide, see if you can apply it on start. Also being a terminal command, you can combine `vim` with many other terminal commands. For example, you can redirect the output of the `ls` command to be edited in Vim with `ls -l | vim -`.
To learn more about the different options you can pass from the terminal, check out `man vim`. To learn more about Vim modes and commands, check out `:help`.

@ -6,7 +6,7 @@ metaDescription: "Learn how to speak to Vim."
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.
This is the most important chapter in the entire book. Once you understand Vim commands' grammar-like structure, you will be able to "speak" to Vim. By the way, when I say *Vim language* in this chapter, I am not talking about Vimscript (the built-in programming language to customize and to create Vim plugins). Here it means the general pattern of normal mode commands.
This is the most important chapter in the entire guide. Once you understand Vim commands' grammar-like structure, you will be able to "speak" to Vim. By the way, when I say *Vim language* in this chapter, I am not talking about Vimscript (the built-in programming language to customize and to create Vim plugins). Here it means the general pattern of normal mode commands.
## How To Learn A Language

@ -479,7 +479,7 @@ Here is the breakdown of that command:
The trick of this command is the expression `\U\2`. `\U` instructs the following character to be uppercased.
Let's do one more example. Suppose you are writing a Vim book and you need to capitalize the first letter of each word in a line.
Let's do one more example. Suppose you are writing a Vim guide and you need to capitalize the first letter of each word in a line.
```
vim is the greatest text editor in the whole galaxy

@ -12,7 +12,7 @@ In this chapter, you will learn how to repeat a command-line command with the gl
Vim's global command is used to running a command-line command on multiple lines simultaneously.
By the way, you may have heard of the term "Ex Commands" before. In this book, I refer them as command-line commands, but both Ex commands and command-line commands are the same. They are the commands that start with a colon (`:`). In the last chapter, you learned about the substitute command. It was an example of an Ex command. They are called Ex because they originally came from the Ex text editor. I will continue to refer to them as command-line commands in this book. For a full list of Ex commands, check out `:h ex-cmd-index`.
By the way, you may have heard of the term "Ex Commands" before. In this guide, I refer them as command-line commands, but both Ex commands and command-line commands are the same. They are the commands that start with a colon (`:`). In the last chapter, you learned about the substitute command. It was an example of an Ex command. They are called Ex because they originally came from the Ex text editor. I will continue to refer to them as command-line commands in this guide. For a full list of Ex commands, check out `:h ex-cmd-index`.
The global command has the following syntax:

Loading…
Cancel
Save