diff --git a/README.md b/README.md index 0c46e7b..00ad810 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Repeat The Previous Change](vim/repeat-the-previous-change.md) - [Replace A Character](vim/replace-a-character.md) - [Scrolling Relative to the Window](vim/scrolling-relative-to-the-window.md) +- [Set End Of Line Markers](vim/set-end-of-line-markers.md) - [Set Your Color Scheme](vim/set-your-color-scheme.md) - [Split Different](vim/split-different.md) - [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md) diff --git a/vim/set-end-of-line-markers.md b/vim/set-end-of-line-markers.md new file mode 100644 index 0000000..f9c6223 --- /dev/null +++ b/vim/set-end-of-line-markers.md @@ -0,0 +1,22 @@ +# Set End Of Line Markers + +Vim has a number of invisible characters that you can set. +One of those characters is the end of line (`eol`) character. +Whatever character you +set this to will appear at the end of each line in your file. This is great +for highlighting extra whitespace at the end of a line that would otherwise +appear invisible. + +Set the `eol` invisible character like so + +``` +:set listchars=eol:¬ +``` + +or append it to the existing list of invisible characters like so + +``` +:set listchars+=eol:¬ +``` + +See `:h listchars` to see what other invisible characters you can set.