From b1df5e2b5713fdebe24180e47f2f4fbfb7cf0bfa Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 31 Oct 2023 18:46:04 +0100 Subject: [PATCH] add vim --- slides/vim/vim.md | 84 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 slides/vim/vim.md diff --git a/slides/vim/vim.md b/slides/vim/vim.md new file mode 100644 index 0000000..739c3dc --- /dev/null +++ b/slides/vim/vim.md @@ -0,0 +1,84 @@ +--- +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 +``` +