diff options
Diffstat (limited to 'vim/plugin/copy_linebreak.vim')
-rw-r--r-- | vim/plugin/copy_linebreak.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/plugin/copy_linebreak.vim b/vim/plugin/copy_linebreak.vim index 9d241d5a..0924134c 100644 --- a/vim/plugin/copy_linebreak.vim +++ b/vim/plugin/copy_linebreak.vim @@ -17,7 +17,8 @@ let g:loaded_copy_linebreak = 1 " Enable copy-friendly linebreak options function! s:CopyLinebreakEnable() setlocal nolinebreak linebreak? - setlocal showbreak= + let s:showbreak = &showbreak + set showbreak= if exists('+breakindent') setlocal nobreakindent endif @@ -26,7 +27,7 @@ endfunction " Disable copy-friendly linebreak options function! s:CopyLinebreakDisable() setlocal linebreak linebreak? - setlocal showbreak< + let &showbreak = s:showbreak if exists('+breakindent') setlocal breakindent< endif |