Browse Source

Tweak and document g:onedark_hide_endofbuffer

pull/143/head
Josh Dick 6 years ago
parent
commit
fbf5af4950
No known key found for this signature in database GPG Key ID: 504C35EB636445DC
  1. 2
      README.md
  2. 2
      colors/onedark.vim

2
README.md

@ -55,6 +55,8 @@ A dark Vim/Neovim color scheme for the GUI and 16/256/true-color terminals, base
**Note:** All options should be set **before** the `colorscheme onedark` line in your `~/.vimrc`. **Note:** All options should be set **before** the `colorscheme onedark` line in your `~/.vimrc`.
* `g:onedark_hide_endofbuffer`: Set to `1` if you want to hide end-of-buffer filler lines (~) for a cleaner look; `0` otherwise (the default).
* `g:onedark_termcolors` **(see [Troubleshooting](#troubleshooting) (below) for more information about this option)**: Set to `256` for 256-color terminals (the default), or set to `16` to use your terminal emulator's native 16 colors. * `g:onedark_termcolors` **(see [Troubleshooting](#troubleshooting) (below) for more information about this option)**: Set to `256` for 256-color terminals (the default), or set to `16` to use your terminal emulator's native 16 colors.
* `g:onedark_terminal_italics`: Set to `1` if your terminal emulator supports italics; `0` otherwise (the default). * `g:onedark_terminal_italics`: Set to `1` if your terminal emulator supports italics; `0` otherwise (the default).

2
colors/onedark.vim

@ -223,7 +223,7 @@ call s:h("DiffDelete", { "bg": s:red, "fg": s:black }) " diff mode: Deleted line
call s:h("DiffText", { "bg": s:yellow, "fg": s:black }) " diff mode: Changed text within a changed line call s:h("DiffText", { "bg": s:yellow, "fg": s:black }) " diff mode: Changed text within a changed line
if get(g:, 'onedark_hide_endofbuffer', 0) if get(g:, 'onedark_hide_endofbuffer', 0)
" If enabled, will style end-of-buffer filler lines (~) to appear to be hidden. " If enabled, will style end-of-buffer filler lines (~) to appear to be hidden.
call s:h("EndOfBuffer", { "fg": s:black, "bg": s:black }) " filler lines (~) after the last line in the buffer call s:h("EndOfBuffer", { "fg": s:black }) " filler lines (~) after the last line in the buffer
endif endif
call s:h("ErrorMsg", { "fg": s:red }) " error messages on the command line call s:h("ErrorMsg", { "fg": s:red }) " error messages on the command line
call s:h("VertSplit", { "fg": s:vertsplit }) " the column separating vertically split windows call s:h("VertSplit", { "fg": s:vertsplit }) " the column separating vertically split windows

Loading…
Cancel
Save