mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-14 12:53:46 -05:00
Disable new Conceal feature by default
For terminal users, the install is involved.
This commit is contained in:
@@ -222,11 +222,11 @@ let g:pencil#cursorwrap = 1 " 0=disable, 1=enable (def)
|
|||||||
For syntaxes such as [tpope/markdown][tm] which support Vim’s Conceal
|
For syntaxes such as [tpope/markdown][tm] which support Vim’s Conceal
|
||||||
feature, you can display \_*italic*\_, \*\*__bold__\*\* and \*\*\*___bold
|
feature, you can display \_*italic*\_, \*\*__bold__\*\* and \*\*\*___bold
|
||||||
italic___\*\*\* styles where the `_` and `*` characters will be hidden
|
italic___\*\*\* styles where the `_` and `*` characters will be hidden
|
||||||
when you’re not on the line. Set the following to `0` if you don’t want
|
when you’re not on the line. Set the following to `2` to enable automatic
|
||||||
this behavior.
|
hiding:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
let g:pencil#conceallevel = 2 " 0=disable, 1=onechar, 2=hide (def)
|
let g:pencil#conceallevel = 2 " 0=disable (def), 1=onechar, 2=autohide
|
||||||
```
|
```
|
||||||
|
|
||||||
A couple of requirements: to display the _italic_, **bold**, and ***bold
|
A couple of requirements: to display the _italic_, **bold**, and ***bold
|
||||||
@@ -235,6 +235,9 @@ featuring those style variants as well as a colorscheme (such as
|
|||||||
[reedes/vim-colors-pencil][cp]) which supports the Markdown-specific
|
[reedes/vim-colors-pencil][cp]) which supports the Markdown-specific
|
||||||
highlight groups.
|
highlight groups.
|
||||||
|
|
||||||
|
For those using Vim in terminal mode, such as with iTerm, you’ll have to
|
||||||
|
read your documentation to determine how to enable bold and italic styles.
|
||||||
|
|
||||||
For more details on Vim’s Conceal feature, see:
|
For more details on Vim’s Conceal feature, see:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ en
|
|||||||
if !exists('g:pencil#conceallevel')
|
if !exists('g:pencil#conceallevel')
|
||||||
" by default, concealing capability in your syntax plugin
|
" by default, concealing capability in your syntax plugin
|
||||||
" will be enabled. See tpope/vim-markdown for example.
|
" will be enabled. See tpope/vim-markdown for example.
|
||||||
" Set to 0 if you don't want this behavior
|
" 0=disable (def), 1=onechar, 2=autohide
|
||||||
let g:pencil#conceallevel = 2
|
let g:pencil#conceallevel = 0
|
||||||
en
|
en
|
||||||
|
|
||||||
if !exists('g:pencil#softDetectSample')
|
if !exists('g:pencil#softDetectSample')
|
||||||
|
|||||||
Reference in New Issue
Block a user