Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ^^^^^^^^^^^^ at the end of page #268

Open
angelPL opened this issue Jun 25, 2022 · 4 comments
Open

Remove ^^^^^^^^^^^^ at the end of page #268

angelPL opened this issue Jun 25, 2022 · 4 comments

Comments

@angelPL
Copy link

angelPL commented Jun 25, 2022

Is it possible to remove these ^^^^^^^^^^^^^^^^^^^^^^^^ characters at the end of current page?

@hnamtang
Copy link

In the ~/.vim/plugged/goyo.vim/autoload/goyo.vim delete 'StatusLine' in line 110 and add this line of code outside the for loop (between line 121 and 122)

call s:set_color('StatusLine', 'bg', 'NONE')

@mroavi
Copy link

mroavi commented Dec 7, 2022

In the ~/.vim/plugged/goyo.vim/autoload/goyo.vim delete 'StatusLine' in line 110 and add this line of code outside the for loop (between line 121 and 122)

call s:set_color('StatusLine', 'bg', 'NONE')

This solution only works if the line 109:

  let bg = s:get_color('Normal', 'bg#')

returns a color in place of -1 on Vim or '' on GVim.

A proper solution has to guarantee that StatusLine and StatusLineNC are highlighted differently as explained in the docs (:h StatusLineNC):

StatusLineNC	Status lines of not-current windows.
		Note: If this is equal to "StatusLine", Vim will use "^^^" in
		the status line of the current window.

@junegunn Any elegant solution to solve this? I haven't been able to think of any.

@angelPL
Copy link
Author

angelPL commented May 2, 2023

I removed StatusLine and StatusLineNC from line 113 in goyo.vim

Path: ~/.vim/plugged/goyo.vim/autoload/goyo.vim

function! s:tranquilize()
  let bg = s:get_color('Normal', 'bg#')
  for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
            \ 'StatusLine', 'StatusLineNC', 'SignColumn']                   # line 113
    " -1 on Vim / '' on GVim
    if bg == -1 || empty(bg)
      call s:set_color(grp, 'fg', get(g:, 'goyo_bg', 'black'))
      call s:set_color(grp, 'bg', 'NONE')
    else
      call s:set_color(grp, 'fg', bg)
      call s:set_color(grp, 'bg', bg)
    endif
    call s:set_color(grp, '', 'NONE')
  endfor
endfunction

Before:

 \ 'StatusLine', 'StatusLineNC', 'SignColumn'] # Line 113

After:

 \ 'SignColumn'] # Line 113

and got interesting effect that I like.

This is somehow solving the issue, although it's not elegant.

Screenshots:

Before:

screenshot-goyo-original

After:

screenshot-goyo-modified

I hope it will help someone.

@javierdepascual
Copy link

Hi, I have a very similar issue. I'm trying to use Vim as a text editor on an eink screen for writing prose. I just don't want the ~'s on the side of the screen. That's why I use Goyo. It works perfectly when I'm in my terminal window, but for some reason I barely understand, on my eink screen both ~ and ^^ appear on the side and bottom of the screen.

So it's something that only happens there. To make the eink screen work I'm using a virtual terminal on Raspbian, but I wouldn't even know how to figure out where the problem comes from. Clearly it's not an issue with Goyo, but maybe someone can help us.

This issue apparently happened on more instances #186. Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants