Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to not display a ~ for blank lines in Vim/Neovim?

Tags:

vim

macvim

neovim

Is it possible to not display a ~ for blank lines in Vim?

This confuses Mac Vim's scrollbar, and I quite don't like these tildes.

like image 376
Ecco Avatar asked Sep 28 '10 13:09

Ecco


People also ask

How do I get rid of blank lines in vi?

:g/^\s*$/d - Remove all blank lines. Unlike the previous command, this also removes the blank lines that have zero or more whitespace characters ( \s* ).

How do I insert a blank line in vi editor?

Opening a blank line: Type o (lower case) to insert, or open, a blank line below the current line. Type O (upper case) to insert a blank line above the current line. Press ESC to get back to command mode.


1 Answers

:hi NonText guifg=bg

That command should set the color of non text characters to be the same as the background color.

like image 90
pullo Avatar answered Sep 20 '22 15:09

pullo