Compare commits
No commits in common. "3b04aaf8bec3e99e29fe798e04b0540d6599d099" and "98dbb5e3d6072730b03a55b60e5d85c2f4f218ae" have entirely different histories.
3b04aaf8be
...
98dbb5e3d6
@ -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).
|
||||
|
@ -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'
|
||||
```
|
@ -57,5 +57,5 @@ brightnessctl s 10%+
|
||||
|
||||
- [autologin](autologin.md)
|
||||
- [services](sv.md)
|
||||
- [wifi](../../networking/wpa_supplicant.md)
|
||||
- [wifi](wpa_cli.md)
|
||||
|
||||
|
@ -10,8 +10,7 @@ tags: [ "vim", "basic" ]
|
||||
|
||||
## Extras
|
||||
|
||||
- [Navigation](vim/navigate.md)
|
||||
- [Completion](vim/completion.md)
|
||||
- [Search](vim/search.md)
|
||||
- [Window Splits](vim/windows.md)
|
||||
- [Use vim bindings in bash](vim/vim_in_bash.md)
|
||||
- [Navigation](navigate.md)
|
||||
- [Completion](vim-completion.md)
|
||||
- [Search](vim-search.md)
|
||||
- [Window Splits](vim-windows.md)
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: "vim completion"
|
||||
tags: [ "vim", "completion" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
Complete the word by searching for the *n*ext similar word:
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: "vim navigation"
|
||||
tags: [ "vim", "navigation" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
| Move | Command |
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: "vim search"
|
||||
tags: [ "vim", "search" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
Search for the next and or previous occurrence of the word under your cursor with `*` and `#`.
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: "vim in bash"
|
||||
tags: [ "vim", "bash", "inputrc" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
Put bash in vim mode!
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: "vim windows"
|
||||
tags: [ "vim" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
| Command | Keys |
|
||||
|
Loading…
x
Reference in New Issue
Block a user