Vim also provides concealing feature to prevent over-the-shoulder peaking into sensitive data while you are editing the file. Imagine files like ~/.bash_aliases, ~/.ssh/config, ~/.gitconfig or actually any files that might contains such sensitive data.
Concealing doesn't make change to the buffer, but just replace target matches with configurable replacement character.
This videos makes use of techniques (linked-in along this video) I've already covered in the past namely as follows in order of important
Technique 18 - Lookaround (Lookahead & Lookbehind) Regex - • Vim Techniques 18 - Lookaround (Lookahead ...
Technique 9 - augroup (with Bonus: autocmd!) - • Vim Techniques 09 - augroup (with Bonus: a...
Technique 10 - listchars + wrap + list - • Vim Techniques 10 - listchars + wrap + list
Technique 14 - Executing vim commands at command line before editing the file - • Vim Techniques 14 - Executing vim commands...
-- Chapters --
0:00 Introduction
0:45 .vimrc configurations for concealing
5:02 matchadd() function's argument details
7:25 Concealing effect in .gitconfig
7:44 2 options for concealing in vim
7:57 conceallevel
10:05 concealcursor
13:11 Conditional statement checking whether to conceal
14:29 alias non-concealing when open a file with vim
16:25 .bash_aliases's concealing configuration in .vimrc
19:04 Concealing effect in .bash_aliases
19:51 Closing
#vim #vimtechniques
-- Follows Wasin on socials --
Website: https://wasin.io
Twitter: @haxpor
LinkedIn: / wasinthonkaew
Github: https://github.com/haxpor