Compare commits

..

No commits in common. "3b04aaf8bec3e99e29fe798e04b0540d6599d099" and "98dbb5e3d6072730b03a55b60e5d85c2f4f218ae" have entirely different histories.

9 changed files with 6 additions and 30 deletions

View File

@ -142,3 +142,4 @@ You can ensure omemo automatcally turns on:
``` ```
--- ---
'OTR' encryption is mostly dead, but you can find the old instructions [here](profanity-otr).

View File

@ -1,19 +0,0 @@
---
title: "Interactive String Substitution"
tags: [ "data", "vim", "substitution" ]
---
Want to find and replace, but also confirm each instance?
```sh
vim -c "%s/${pattern}/${replacement}/gc" -c 'wq' ${file}
```
Notice that double-quotes (`"`) in the first command (`-c`).
Alternatively, check with an example string:
```sh
sed "s/${pattern}/ARGLEBARGLE/g" ${file} | grep 'ARGLEBARGLE'
```

View File

@ -57,5 +57,5 @@ brightnessctl s 10%+
- [autologin](autologin.md) - [autologin](autologin.md)
- [services](sv.md) - [services](sv.md)
- [wifi](../../networking/wpa_supplicant.md) - [wifi](wpa_cli.md)

View File

@ -10,8 +10,7 @@ tags: [ "vim", "basic" ]
## Extras ## Extras
- [Navigation](vim/navigate.md) - [Navigation](navigate.md)
- [Completion](vim/completion.md) - [Completion](vim-completion.md)
- [Search](vim/search.md) - [Search](vim-search.md)
- [Window Splits](vim/windows.md) - [Window Splits](vim-windows.md)
- [Use vim bindings in bash](vim/vim_in_bash.md)

View File

@ -1,7 +1,6 @@
--- ---
title: "vim completion" title: "vim completion"
tags: [ "vim", "completion" ] tags: [ "vim", "completion" ]
requires: [ "vim basics" ]
--- ---
Complete the word by searching for the *n*ext similar word: Complete the word by searching for the *n*ext similar word:

View File

@ -1,7 +1,6 @@
--- ---
title: "vim navigation" title: "vim navigation"
tags: [ "vim", "navigation" ] tags: [ "vim", "navigation" ]
requires: [ "vim basics" ]
--- ---
| Move | Command | | Move | Command |

View File

@ -1,7 +1,6 @@
--- ---
title: "vim search" title: "vim search"
tags: [ "vim", "search" ] tags: [ "vim", "search" ]
requires: [ "vim basics" ]
--- ---
Search for the next and or previous occurrence of the word under your cursor with `*` and `#`. Search for the next and or previous occurrence of the word under your cursor with `*` and `#`.

View File

@ -1,7 +1,6 @@
--- ---
title: "vim in bash" title: "vim in bash"
tags: [ "vim", "bash", "inputrc" ] tags: [ "vim", "bash", "inputrc" ]
requires: [ "vim basics" ]
--- ---
Put bash in vim mode! Put bash in vim mode!

View File

@ -1,7 +1,6 @@
--- ---
title: "vim windows" title: "vim windows"
tags: [ "vim" ] tags: [ "vim" ]
requires: [ "vim basics" ]
--- ---
| Command | Keys | | Command | Keys |