Skip to content

ernstwi/vim-secret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

FAQ

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

Docker can be used to run tests in an isolated environment:

$ docker build -t vim-secret .
$ docker run --rm vim-secret [--verbose]

About

Private writing mode for Vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published