Notas

Notas, scripts, algoritmos de uso diario y documentación de algunos proyectos.

View on GitHub
16 August 2021

Vim

by Juan Manuel González Garzón

Vim

I. Configurations

/etc/vimrc

set nu                  " Show the line number
set nowrap              " Avoid wrapping the text

II. Replace

Find each occurrence of ‘foo’ (in all lines), and replace it with ‘bar’.

:%s/foo/bar/g

Change each ‘foo’ to ‘bar’, but ask for confirmation first.

:%s/foo/bar/gc

Creditos y referencias

Command line icons created by Smashicons - Flaticon

tags: