Compare commits
3 Commits
98dbb5e3d6
...
3b04aaf8be
Author | SHA1 | Date | |
---|---|---|---|
3b04aaf8be | |||
1dfdac516b | |||
63e4c409bb |
@ -142,4 +142,3 @@ You can ensure omemo automatcally turns on:
|
||||
```
|
||||
---
|
||||
|
||||
'OTR' encryption is mostly dead, but you can find the old instructions [here](profanity-otr).
|
||||
|
19
data/interactive_string_substitution.md
Normal file
19
data/interactive_string_substitution.md
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
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](wpa_cli.md)
|
||||
- [wifi](../../networking/wpa_supplicant.md)
|
||||
|
||||
|
@ -10,7 +10,8 @@ tags: [ "vim", "basic" ]
|
||||
|
||||
## Extras
|
||||
|
||||
- [Navigation](navigate.md)
|
||||
- [Completion](vim-completion.md)
|
||||
- [Search](vim-search.md)
|
||||
- [Window Splits](vim-windows.md)
|
||||
- [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)
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "vim completion"
|
||||
tags: [ "vim", "completion" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
Complete the word by searching for the *n*ext similar word:
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "vim navigation"
|
||||
tags: [ "vim", "navigation" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
| Move | Command |
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
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,6 +1,7 @@
|
||||
---
|
||||
title: "vim in bash"
|
||||
tags: [ "vim", "bash", "inputrc" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
Put bash in vim mode!
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "vim windows"
|
||||
tags: [ "vim" ]
|
||||
requires: [ "vim basics" ]
|
||||
---
|
||||
|
||||
| Command | Keys |
|
||||
|
Loading…
x
Reference in New Issue
Block a user