Github GitHub - ernstwi/vim-secret: Private writing mode for Vim
source link: https://github.com/ernstwi/vim-secret
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
vim-secret
Usage
:Secret
Enable secret view.
:Secret (line | word | char | none)
Enable secret view with a specific visibility setting.
:Secret!
Disable secret view.
<Plug>SecretToggle
Toggle secret view.
An area around the cursor is unhidden to enable you to see what you are typing. This can be the entire line, the current word, the current character, or it can be disabled completely.
After a duration of time without input, or invoked manually via a mapping, all characters in the buffer is hidden. For details on this and other configuration options, see :help secret
.
Replacement characters have a background color, which looks weird.
This is due to how your color scheme styles the Conceal
highlight group. To remove the background color, you could use something like the following in your vimrc
/init.vim
:
autocmd! VimEnter,ColorScheme * hi Conceal ctermbg=NONE guibg=NONE
See :help secret-highlight
for more info.
Testing
make
can be used to do testing in an isolated environment. The default target runs test/*.vader
in Vim and Neovim.
Thanks to vim-sneak for this idea.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK