vimwiki/tech/vim.wiki
2021-10-10 23:22:53 -04:00

37 lines
450 B
Plaintext

= Vim =
This text editor, most likely unless you're on the website
== To use ==
run
{{{
:h vim
}}}
== Useful things ==
=== Dos to Unix line endings ===
To save the current file with different line endings, run
{{{
:w ++ff=unix
:w ++ff=mac
:w ++ff=dos
}}}
Replace w with e to replace the line endings in the editor
=== Search and replace ===
This will replace all instances of FOO with BAR:w
{{{
:s/FOO/BAR/g
}}}
[[index]]