Files
workshops/slides/vim/vim.md
2023-10-31 18:46:04 +01:00

85 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title:
- RSA - vi improved
author:
- Malin
theme:
- Warsaw
colortheme:
- orchid
---
# Myths, Half-Truths and Lies
- You can get `vim`-keys in other programs
* Yea, nah
- `vim` [ is/ is not ] an IDE
* UNIX is the IDE
- `vim` is hard
* It's four commands!
## Heresies
> Emacs: "a great operating system, lacking only a decent editor"
> `code`, because everything is a web browser.
# `vim` is a Language
- `d$`
- `y$`
- `dp`
- `dip`
- `di[`
- `vi[p`
# Plugins: Just Don't
```
/home/ghost/.vim
|-- doc
|   |-- completion.txt
|   |-- manet.txt
|   |-- tags
|-- plugin -> /home/ghost/.dots/mess/vim/plugin
|   |-- completion.vim
|   |-- manet.vim
|-- skel -> /home/ghost/.dots/mess/vim/skel
|   |-- bindAnimal.tex
|   |-- bindArtefact.tex
|   |-- bindCharacter.tex
|   |-- wod_vampire.tex
|-- spell
|-- en.utf-8.add
|-- en.utf-8.add.spl
|-- sr.utf-8.spl
```
# Tricks
## Remote Editing
> vim scp://*user*@*myserver*[:*port*]//*path/to/file.txt*
## File Navigation
```bash
vim .
```
## Tabs
```bash
vim -p .bash*
```
## Literally Anything
```bash
r!fortune
```