Closed halfo closed 9 years ago
Must be caused by another plugin or some configuration. Cannot reproduce with the following vimrc:
set rtp+=~/.vim/plugged/goyo.vim
function! s:goyo_enter()
sign define dummy
execute 'sign place 9999 line=1 name=dummy buffer=' . bufnr('')
endfunction
function! s:goyo_leave()
execute 'sign unplace 9999 buffer=' . bufnr('')
sign undefine dummy
endfunction
autocmd User GoyoEnter nested call <SID>goyo_enter()
autocmd User GoyoLeave nested call <SID>goyo_leave()
vim -Nu mini-vimrc
if I enter in insert mode it is gone
You should probably check :autocmd InsertEnter
and :autocmd InsertLeave
.
With that mini-vimrc, this is what it looks like now...
BTW, I've managed to overcome this by setting LineNr's colors to my colorscheme's background color:
function! s:goyo_enter()
:sign define dummy
:execute 'sign place 9999 line=1 name=dummy buffer=' . bufnr('')
hi LineNr gui=none guibg=#1c1c1c guifg=#1c1c1c cterm=none ctermbg=234 ctermfg=234
endfunction
function! s:goyo_leave()
:execute 'sign unplace 9999 buffer=' . bufnr('')
:sign undefine dummy
endfunction
autocmd User GoyoEnter nested call <SID>goyo_enter()
autocmd User GoyoLeave nested call <SID>goyo_leave()
And this works iff that hi LineNr gui...
is inside goyo_enter() function!
Well, this is what I see on my terminal (iterm2 with dark and light color themes). You probably should check your terminal configuration or try different terminal emulator.
Yeah, I also think it's something terminal related. Well, thanks for your time and such awesome plugin!
Problem
In DF (Distraction-Free) mode, a weird vertical bar is appearing. I'm sure it is a vertical split bar. However, if I enter in insert mode it is gone. It reappears when I enter in DF mode again!
Screenshot
Background
I wanted to set SignColumn always visible in DF mode. So I'm adding a dummy sign whenever I'm entering in DF mode and removing it whenever I leaves. Here is the code
That weird bar stops appearing if I remove this code segment from my vimrc.