Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting rid of block like characters at the end of line in vim

Tags:

vim

themes

enter image description here

Given my .vimrc, how do I get rid of these brownish characters at the end of line in vim ?

like image 588
Ankur Agarwal Avatar asked Dec 13 '25 05:12

Ankur Agarwal


2 Answers

This could be either the result of a previous search for $ (end of line), or the explicit display of end of line markers.

You can disable the highlighting of search results with :set nohlsearch.

You can disable the explicit end of line markers with :set nolist.

like image 148
janos Avatar answered Dec 14 '25 17:12

janos


If you actually want to remove the trailing whitespace:

:%s/[[:space:]]\+$//
like image 39
glenn jackman Avatar answered Dec 14 '25 18:12

glenn jackman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!