mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-17 06:13:39 -05:00
Add breakindent support for #10
This commit is contained in:
@@ -168,6 +168,15 @@ fun! pencil#init(...) abort
|
|||||||
setl colorcolumn<
|
setl colorcolumn<
|
||||||
en
|
en
|
||||||
|
|
||||||
|
if ( v:version > 704 ||
|
||||||
|
\ (v:version ==# 704 && has('patch-7.4.338')))
|
||||||
|
if b:pencil_wrap_mode ==# s:WRAP_MODE_SOFT
|
||||||
|
setl breakindent
|
||||||
|
el
|
||||||
|
setl breakindent<
|
||||||
|
en
|
||||||
|
en
|
||||||
|
|
||||||
" global settings
|
" global settings
|
||||||
if b:pencil_wrap_mode
|
if b:pencil_wrap_mode
|
||||||
set display+=lastline
|
set display+=lastline
|
||||||
@@ -177,11 +186,6 @@ fun! pencil#init(...) abort
|
|||||||
el
|
el
|
||||||
set nojoinspaces " only one space after a .!? (default)
|
set nojoinspaces " only one space after a .!? (default)
|
||||||
en
|
en
|
||||||
|
|
||||||
"if b:pencil_wrap_mode ==# s:WRAP_MODE_SOFT
|
|
||||||
" " augment with additional chars
|
|
||||||
" set breakat=\ !@*-+;:,./?([{
|
|
||||||
"en
|
|
||||||
en
|
en
|
||||||
|
|
||||||
" because ve=onemore is relatively rare and could break
|
" because ve=onemore is relatively rare and could break
|
||||||
|
|||||||
Reference in New Issue
Block a user