Invertimos todo en nuestro hijo, pero ahora somos pobres y fracasados para él

Tengo cincuenta años, mi marido cincuenta y cinco. Toda la vida hemos vivido con modestia, pero unidos, esforzándonos por apoyarnos, ayudarnos y superar juntos las dificultades. Criamos a nuestro hijo, Adrián. Hace poco cumplió veintitrés años y anunció que quería vivir por su cuenta. Lo tomamos con calma —era hora, la edad era la adecuada—. Pero detr# VIM note

## What is Vim?

Vim is a highly configurable text editor built to enable efficient text editing. Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor ‘Vi’, with a more complete feature set. It’s useful whether you’re already using vi or using a different editor. Users of Vim 8.1 can look forward to a “popup window” feature, terminal window support, a terminal debugger plugin, and more.

### Getting started

#### Basic concepts for Vim
1. Vim was designed to minimize the use of the mouse since doing so would slow the typing speed down.
2. Vim is a modal editor. It has 6 basic modes that can be used to edit text or do other stuff.
3. Vim uses several keyboard shortcuts to perform different tasks.

## Installation
Check the latest version of vim:
[Vim’s official website](https://www.vim.org/download.php)

### Vim for Linux
Run `sudo apt-get install vim` to install Vim on Linux.

### Vim for Mac OS X
If you are running **Mac OS X 10.6 Snow Leopard or newer**, the system comes with Vim version 7.3.

If you are using **Homebrew**, run the following command in the terminal to install Vim:
“`
brew install vim
“`

To upgrade Vim, run the following command in the terminal:
“`
brew upgrade vim
“`

### Vim for Windows
Get started with Vim for Windows [here](https://www.vim.org/download.php#pc).

### Vim in Command Line

To see what version of Vim you’re running:
“`
vim –version
“`

To open Vim:
“`
vim
“`

Open Vim with a specific file:
“`
vim file.txt
“`

## Getting help

### Check the Vim help document

Run the following command to see the help document:
“`
:help
“`

See the help document for a specific command, e.g., `:help quit` to see information about quit.

Run the following command to quit the help document:
“`
Ctrl + w then q
“`

Check the Vim help document [here](https://vimhelp.org/).

### Check Vimtutor

To learn how to use Vim, run:
“`
vimtutor
“`

If using Vim on Linux, please run:
“`
vimtutor
“`

If using Vim on Mac, please run:
“`
vimtutor
“`

If using Vim on Windows, please run:
“`
vimtutor.bat
“`

## Getting out

### Vim modes

Vim has 6 basic modes:

1. **Normal mode**: The default mode for navigation and simple editing. This mode is sometimes referred to as command mode since commands are often longer than a single keystroke.
2. **Insert mode**: For inserting new text. The user can return to normal mode by pressing the `Esc` key.
3. **Visual mode**: For selecting blocks of text. This mode is like normal mode, but the movement commands expand a highlighted text area. Commands applied to the selected text.
4. **Command-line mode**: For entering commands to be executed on the text. This mode is entered by pressing `:` in normal mode.
5. **Select mode**: Similar to visual mode but with a more MS Windows-like behavior. This mode is entered by pressing `gh` or similar commands.
6. **Ex mode**: Similar to command-line mode but optimized for batch processing. This mode is entered by pressing `gQ`, and the user can return to normal mode by entering the visual command `:vi`.

### Getting out of Vim

From **normal mode**, press `:` to enter command-line mode, then type `q` and press `Enter` to quit Vim. If you have unsaved changes, Vim will refuse to exit.

To quit Vim and discard any changes, type `:q!` and press `Enter`.

To save changes and quit Vim, type `:wq` and press `Enter`.

To save changes to a file without quitting, type `:w` and press `Enter`.

When editing multiple files, type `:qa` and press `Enter` to quit all of them. If you have unsaved changes, Vim will refuse to exit. To quit Vim and discard any changes, type `:qa!` and press `Enter`.

## Editing small files

### Moving around

#### Basic moving

1. `h`: Move left.
2. `j`: Move down.
3. `k`: Move up.
4. `l`: Move right.

#### Word moving

1. `w`: Move to the beginning of the next word.
2. `b`: Move to the beginning of the previous word.
3. `e`: Move to the end of the current word.
4. `W`, `B`, `E`: Move like `w`, `b`, and `e` but ignore punctuation.

#### Line moving

1. `0`: Move to the beginning of the current line.
2. `$`: Move to the end of the current line.
3. `^`: Move to the first non-blank character of the current line.
4. `fx`: Move to the next occurrence of the character `x` in the current line.
5. `Fx`: Move to the previous occurrence of the character `x` in the current line.
6. `tx`: Move to the character before the next occurrence of `x` in the current line.
7. `Tx`: Move to the character after the previous occurrence of `x` in the current line.
8. `;`: Repeat the previous `f`, `F`, `t`, or `T` command.
9. `,`: Repeat the previous `f`, `F`, `t`, or `T` command in the opposite direction.
10. `%`: Move to the matching parenthesis or bracket.

#### Screen moving

1. `H`: Move to the top of the screen.
2. `M`: Move to the middle of the screen.
3. `L`: Move to the bottom of the screen.
4. `Ctrl + f`: Move forward one screen.
5. `Ctrl + b`: Move backward one screen.
6. `Ctrl + d`: Move forward half a screen.
7. `Ctrl + u`: Move backward half a screen.
8. `zz`: Center the current line on the screen.

#### File moving

1. `gg`: Move to the first line of the file.
2. `G`: Move to the last line of the file.
3. `:n` or `nG`: Move to line `n`.

### Inserting text

1. `i`: Insert before the cursor.
2. `I`: Insert at the beginning of the current line.
3. `a`: Insert (append) after the cursor.
4. `A`: Insert (append) at the end of the current line.
5. `o`: Begin a new line below the current line.
6. `O`: Begin a new line above the current line.
7. `Esc`: Exit insert mode and return to normal mode.

### Deleting text

1. `x`: Delete the character under the cursor.
2. `X`: Delete the character before the cursor.
3. `dw`: Delete from the cursor to the beginning of the next word.
4. `db`: Delete from the cursor to the beginning of the previous word.
5. `dd`: Delete the current line.
6. `D` or `d$`: Delete from the cursor to the end of the current line.
7. `d0` or `d^`: Delete from the cursor to the beginning of the current line.
8. `dG`: Delete from the cursor to the end of the file.
9. `dgg`: Delete from the cursor to the beginning of the file.

### Changing text

1. `r`: Replace the character under the cursor with the next character typed.
2. `R`: Enter replace mode, replacing characters rather than inserting them until `Esc` is pressed.
3. `cw`: Change from the cursor to the beginning of the next word.
4. `cb`: Change from the cursor to the beginning of the previous word.
5. `cc`: Change the current line.
6. `C` or `c$`: Change from the cursor to the end of the current line.
7. `c0` or `c^`: Change from the cursor to the beginning of the current line.
8. `s`: Delete the character under the cursor and enter insert mode.
9. `S`: Delete the current line and enter insert mode.

### Copying and pasting

1. `yy`: Copy the current line.
2. `yw`: Copy from the cursor to the beginning of the next word.
3. `yb`: Copy from theTras la discusión, Adrián se marchó de casa sin decir adiós, y desde entonces solo sabemos de él por los rumores que llegan a través de familiares.

Rate article
MagistrUm
Invertimos todo en nuestro hijo, pero ahora somos pobres y fracasados para él