trad otra sección cap 17
This commit is contained in:
parent
dca8650681
commit
1622bf3212
1 changed files with 34 additions and 34 deletions
68
ch17_fold.md
68
ch17_fold.md
|
@ -262,54 +262,54 @@ salmon
|
|||
huevos revueltos
|
||||
```
|
||||
|
||||
## Diff Fold
|
||||
## Plegado por diferencia (*Diff Fold*)
|
||||
|
||||
Vim can do a diff procedure to compare two or more files.
|
||||
Vim puede hacer un procedimiento de búsqueda de diferencias para comparar dos o más archivos.
|
||||
|
||||
If you have `file1.txt`:
|
||||
Si tienes el archivo `archivo1.txt`:
|
||||
|
||||
```
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
```
|
||||
|
||||
And `file2.txt`:
|
||||
Y el archivo `archivo2.txt`:
|
||||
|
||||
```
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
emacs is ok
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
emacs está bien
|
||||
```
|
||||
|
||||
Run `vimdiff file1.txt file2.txt`:
|
||||
Ejecuta `vimdiff archivo1.txt archivo2.txt`:
|
||||
|
||||
```
|
||||
+-- 3 lines: vim is awesome -----
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
vim is awesome
|
||||
[vim is awesome] / [emacs is ok]
|
||||
+-- 3 lines: vim es genial -----
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
vim es genial
|
||||
[vim es genial] / [emacs está bien]
|
||||
```
|
||||
|
||||
Vim automatically folds some of the identical lines. When you are running the `vimdiff` command, Vim automatically uses `foldmethod=diff`. If you run `:set foldmethod?`, it will return `diff`.
|
||||
Vim de manera automática pliega algunas líneas idénticas. Cuando ejecutas el comando `vimdiff`, Vim automáticamente utiliza `foldmethod=diff`. Si ejecutas ahora `:set foldmethod?`, verás que devuelve `diff` como método de plegado utilizado.
|
||||
|
||||
## Persisting Fold
|
||||
|
||||
|
|
Loading…
Reference in a new issue